In regex is it called lazy or non-greedy?
-
02-10-2019 - |
Question
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow