Hey there, i'm trying to write some code to validate a username.
The specifics for the username are:
- Alphanumeric
- Can't begin with Mod or Admin
So far, i have
/(Mod|Admin)[a-zA-Z0-9]+$/
(pcre regex - preg_match)
However this matches when the username DOES start with Mod or Admin.
How would I reverse this, so if it starts with Mod or Admin it doesn't match?
Thanks