Mega Code Archive

 
Categories / Php / Strings
 

Preg_match

<?php    $line = "this is a test!";     if (preg_match("/\bis\b/i", $line, $match)) print "Match found!"; ?>