Fixed preg_match comparison per code review, the regular expression that needs to be matched is the first argument