![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Problem with negative lookahead at end of stringby tye (Sage) |
on Jun 21, 2004 at 15:12 UTC ( [id://368469]=note: print w/replies, xml ) | Need Help?? |
If "whatever" is actually a pattern that can match more than a single length of string, then instead use:
And note that the (?!.*that) part doesn't need to be repeated. - tye
In Section
Seekers of Perl Wisdom
|
|