in reply to Re: Regular Expression Tweaking
in thread Regular Expression Tweaking
From perlre:
(?!pattern)
A zero-width negative lookahead assertion. For example /foo(?!bar)/ matches any occurrence of ``foo'' that isn't followed by ``bar''. Note however that lookahead and lookbehind are NOT the same thing. You cannot use this for lookbehind.
Perhaps you mean to use the (?<!pattern) look behind assertion?
More From perlre:
(?<!pattern)
A zero-width negative lookbehind assertion. For example /(?<!bar)foo/ matches any occurrence of ``foo'' that isn't following ``bar''. Works only for fixed-width lookbehind.
-Ben Jacobs (dooberwah)
http://dooberwah.perlmonk.org
"one thing i can tell you is you got to be free"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (dooberwah) I'm don't think that gives the same results
by blakem (Monsignor) on Feb 21, 2002 at 19:31 UTC | |
|
Re: (dooberwah) I'm don't think that gives the same results
by Anonymous Monk on Feb 21, 2002 at 22:33 UTC | |
by dooberwah (Pilgrim) on Feb 22, 2002 at 22:19 UTC | |
by Anonymous Monk on Feb 23, 2002 at 13:55 UTC | |
by Anonymous Monk on Feb 21, 2002 at 22:48 UTC |