Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: regex questionby broomduster (Priest) |
on Sep 01, 2008 at 07:13 UTC ( [id://708124]=note: print w/replies, xml ) | Need Help?? |
The non-greedy *? is perfectly happy to eat up nothing unless you tell it how far to go. So either use the greedy version for the second capture or anchor with, say, $. Try either of these:
Note that both of them produce: Elimination of that . left as an exercise. ;-)
In Section
Seekers of Perl Wisdom
|
|