I'm desperatly searching for a regular expression that match anything between a to z, A to Z, 0 to 9 and "-". The same regular expression must not match if the string being checked is equal to "admin".
I tried this :
/^(?!admin)|([-a-z0-9]{1,})$/i
but it doesn't work, it match for the string admin even if I added the negative lookahead stuff.
I'm using this regex with PHP (PCRE).