Keep It Simple, Stupid | |
PerlMonks |
RegEx questionby vit (Friar) |
on Dec 21, 2017 at 22:06 UTC ( [id://1206002]=perlquestion: print w/replies, xml ) | Need Help?? |
vit has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I need to write an expression which will match the following : ^(something but not "bank") (nova scotia) (something but not "bank")$ I tried different options but none works, for example "^(?!bank).*?nova scotia.*?(?!bank).*$" I feel that this is wrong but can't find the right one, please help.
Back to
Seekers of Perl Wisdom
|
|