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 !~.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Writing a negative regex using =~
by ftumsh (Scribe) on Oct 17, 2012 at 10:41 UTC | |
Re^2: Writing a negative regex using =~
by ftumsh (Scribe) on Oct 17, 2012 at 10:53 UTC |
In Section
Seekers of Perl Wisdom