开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜