📜  查找子字符串 regx php 代码示例

📅  最后修改于: 2022-03-11 14:53:51.840000             🧑  作者: Mango

代码示例1
if (preg_match("/\bweb\b/i", "PHP is the web scripting language of choice.")) {
    echo "A match was found.";
} else {
    echo "A match was not found.";
}