http://qs1969.pair.com?node_id=999512


in reply to Writing a negative regex using =~

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 !~.