preg-match was backwards