php preg_match in Regex Help Posted January 24, 2014 Your pattern matches any string with "azz" in it, followed or preceded by anything. If you don't want it to match "azzz" you'll have to be more specific. For example: /^azz$/ would only match the string "azz", /azz(?!z)/ would match "azz" not followed by "z" anywhere in the string.
php preg_match
in Regex Help
Posted