Fixed usage of preg_match()