You can use the following expression which will match any value that is not manager
or admin
:
^(?!(admin|manager)).*$
and if you want to disallow the user to choose usernames which contain manager
or admin
anywhere in the string like usr_admin
, myManager_101
, etc ..
Then you can use the following:
^(?!.*?(admin|manager)).*$