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.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.