<? $string = "this is a test!"; if (preg_match("/oo\b/i", $string)) { } preg_match("/oo\B/i", $string); preg_match("/no\b/", "he said 'no!'"); preg_match("/royalty\b/", "royalty-free photograph"); ?>