regexregex-greedygreedynon-greedyreluctant-quantifiers

In regex is it called lazy or non-greedy?


I originally heard it as nongreedy. Then on references 'on the web' i saw it called as lazy. Which is it?


Solution

  • Non-greedy, ungreedy, reluctant, minimal match, lazy etc. all refer to the same concept. Which name to use is just a matter of taste.