shadowpuppet has asked for the wisdom of the Perl Monks concerning the following question:
should not match, whereasExample: http://www.google.com/?stuff=<<merge>>
should match.http://<<merge>>.place.com/?blah=blahblah
From my research though, negative lookbehind only matches the next character. I can't seem to get around this without getting the error: "Look-behind group does not have an obvious maximum length".
(?<![^\?]*\?)<<\w+>>; # was my idea, but it doesn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: negative lookbehind question
by thundergnat (Deacon) on May 26, 2005 at 20:49 UTC | |
|
Re: negative lookbehind question
by dragonchild (Archbishop) on May 26, 2005 at 20:44 UTC | |
|
Re: negative lookbehind question
by demerphq (Chancellor) on May 26, 2005 at 20:59 UTC | |
|
Re: negative lookbehind question
by japhy (Canon) on May 26, 2005 at 23:28 UTC |