Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Combinatorial regexingby blokhead (Monsignor) |
on May 04, 2007 at 18:36 UTC ( [id://613632]=note: print w/replies, xml ) | Need Help?? |
Try something like this:
This says: look ahead to capture the next two words, without advancing pos. Then with that stuff captured, advance pos as far as the first word. However, I don't see much wrong with using @words like you've done in your last example... blokhead
In Section
Seekers of Perl Wisdom
|
|