|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
regex: negative lookaheadby svenXY (Deacon) |
| on Dec 05, 2011 at 15:47 UTC ( #941881=perlquestion: print w/ replies, xml ) | Need Help?? |
|
svenXY has asked for the
wisdom of the Perl Monks concerning the following question:
Hi,
I'm confused with a negative lookahead. Here's some example code. I want it to match on $needs and to not match on $has. The examples 3 and 4 are only as a reference to a fixed string, but I basically want ^($start(.*?))(?!$end)$. Any ideas?
Regards, svenXY
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||