If I understand your problem correctly, you need a negative look-ahead:
/^(?!.*(?:GBFER|GBFOO))/
However I suggest redesigning your system so that it does not prevent you from using !~.
In reply to Re: Writing a negative regex using =~
by betterworld
in thread Writing a negative regex using =~
by ftumsh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |