How to precisely identify & work greedy or reluctant quantifiers?
This question already has an answer here:
These are the matches of d*
against "ab34ef"
:
This should explain your output. If the quantifier was reluctant, this would be the difference:
The reluctant quantifier grabs as little as allowed to make the entire expression match.
链接地址: http://www.djcxy.com/p/13418.html上一篇: 所有格量词如何工作?
下一篇: 如何准确识别和工作贪婪或不情愿的量词?