Fix: match only at the end of the subject string

See: http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php