开发者

In regex is it called lazy or non-greedy? [duplicate]

开发者 https://www.devze.com 2023-01-06 14:44 出处:网络
This question already has answers here: What do 'lazy' and 'greedy' mean in the context of regular expressions?
This question already has answers here: What do 'lazy' and 'greedy' mean in the context of regular expressions? 开发者_高级运维 (13 answers) Closed 2 years ago.

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号