[Gambas-user] Problem with lazy regexp

T Lee Davidson t.lee.davidson at ...626...
Mon Apr 24 19:03:25 CEST 2017


On 04/24/2017 04:25 AM, Tobias Boege wrote:
> You can still get greedy quantifiers by using ungreedy ones in your
> pattern...

LOL. To get ungreedy behavior, use greedy quantifiers. That's logical.


Thank you very much, Tobi, for digging that up and updating the documentation.

Perhaps, though, more intuitive behavior would be achieved if the RegExp.Ungreedy flag was not set by default. Just a thought.

Thanks again.

-- 
Lee





More information about the User mailing list