XP is just a number | |
PerlMonks |
Re: Greedy regexp matching: differences between man page and implementation?by Roy Johnson (Monsignor) |
on Jul 08, 2004 at 13:45 UTC ( [id://372794]=note: print w/replies, xml ) | Need Help?? |
Be sure to see this meditation for better understanding of how it's supposed to (and does) work.
In your example, it did match as many times as possible: once. Matching ab instead of a would not be matching more times, just more characters. We're not really tightening our belts, it just feels that way because we're getting fatter.
In Section
Seekers of Perl Wisdom
|
|