search

Home  >  Q&A  >  body text

Regular result not matched? ? ?

$zz = '/this\b/';


$string1 = "this is an apple";

$string2 = "thisis a apple";

$string3 = "thisartrapple";


##if (preg_match($zz, $string3, $matches)) {

echo 'Matched, the result is:';

var_dump($matches);

} else {

echo 'No match found';

}


?>


。2514 days ago1417

reply all(1)I'll reply

  • 不用扶的阿斗

    不用扶的阿斗2018-10-05 11:53:09

    Add a space after this, or change thisartrapple to artrapplethis

    reply
    0
  • Cancelreply