Perl: the Markov chain saw | |
PerlMonks |
Re: Keeping lookahead assertion from looking to the end of the string?by Django (Pilgrim) |
on Sep 05, 2002 at 07:23 UTC ( [id://195300]=note: print w/replies, xml ) | Need Help?? |
Although you didn't say it, I suppose you want to catch the substrings between 'start' and 'end' - otherwise you don't have to care about overlapping. In that case you could do something like the following:
update: normal matching without look-ahead and look-behind will have the same effect with the example string:
update: I overlooked that Limbic~Regions regex catches the substring too. Shame on me! ~Django
In Section
Seekers of Perl Wisdom
|
|