oktw says to #ysitd <seadog007>: $re = "/ab/"; $str = "abcabcabcabcabcabc"; preg_match_all($re, $str, $matches);