in reply to Re: Must do regex range quantifier { } as a greedy
in thread Must do regex range quantifier { } as a greedy

The relevant part is rather

By default, a quantified subpattern is "greedy", that is, it will match as many times as possible (given a particular starting location) while still allowing the rest of the pattern to match. If you want it to match the minimum number of times possible, follow the quantifier with a "?"

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^2: Must do regex range quantifier { } as a greedy