if (preg_match("/php/is", "PHP is the web scripting language of choice.")) {
echo "A match was found.";
} else {
echo "A match was not found.";
}
我想问/符号是什么意思?怎么书上没看到
...全文
256打赏收藏
麻烦高手帮忙解析下这个正则
麻烦高手帮忙解析下, 最好说详细点, 能具体到每个字符最好了, 新手求教,拜托各位了 $pattern = '/\[a@([^"@]*)@([^]"]*)\]/'; 这个正则到底怎么在找什么? 还有 php manual里面的很多例子里的正则都以/开头 例如 if (preg_match("/php/is", "PHP is the web scripting language of choice.")) { echo "A match was found."; } else { echo "A