$zz = '/this\b/';
$string1 = "this is a apple";
$string2 = "thisis a apple";
$string3 = "thisartrapple";
if (preg_match($zz, $string3, $matches)) {
echo '配對到了,結果是:';
var_dump($matches);
} else {
# echo '沒有符合到';
#}
?>
php
this後面加個空格,或是thisartrapple改為artrapplethis
this後面加個空格,或是thisartrapple改為artrapplethis
######