Regular expression "." Please answer. Thank you.
phpcn_u10161
phpcn_u10161 2017-07-21 10:44:21
0
2
1527

<?

$zz = '/gg.gg/';

$string = "ABC1ABC";

$if(preg_match($zz, $string,$matches)){

echo 'Matched, the result is:';

var_dump($matches);

}else{

echo 'No match';

}

?>

Why the match failed, I don't understand. . .

phpcn_u10161
phpcn_u10161

reply all(2)
nearest

$string = "ggABC1ABCgg";

  • reply I haven’t turned around yet, but I understand now. Thank you~
    phpcn_u10161 author 2017-07-25 14:23:59
  • reply Reply to phpcn_u10161: What does it mean? I still don’t understand this example?
    益伦 author 2017-10-24 22:37:37
  • reply come on
    nearest author 2017-07-25 17:19:35
Ty80

What the hell is '/gg.+gg/'?

  • reply This is what the course looks like
    phpcn_u10161 author 2017-07-22 22:48:22
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template