Feb 1, 2013, 1:24 AM
Post #3 of 4
Re: [bobt_1234] Greedy expression doesn't work like I expect
[In reply to]
Doesn't the question mark do a "greedy" search?
No, it's the opposite. By default, * and + are greedy, and the ? makes them non-greedy.
Reason is that we want to have greediness more frequently than non-greediness.