20089Re: [PBML] Re: Compact digital range RexEx - And complement?
- Dec 1, 2004Dear Allan,
I think you are looking for:
A zero-width negative look-ahead assertion. For example
"/foo(?!bar)/" matches any occurrence of "foo" that isn't
followed by "bar". Note however that look-ahead and look-
behind are NOT the same thing. You cannot use this for
from perldoc perlre
You might need to wrap the regex with ^ and $ assertions.
- << Previous post in topic Next post in topic >>