We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*?
+?
例如:
'<abc>x</abc>'.match(/<.+?>/)[0] // '<abc>' '<abc>x</abc>'.match(/<.+>/)[0] // '<abc>x</abc>'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
*?
/+?
将启用懒匹配模式,即匹配最短符合规则的字符串即停止匹配,而默认情况下是尽可能多得匹配。例如:
The text was updated successfully, but these errors were encountered: