Fix preg_match expression bug.