阅读背景:

如何在1次匹配后停止正则表达式匹配而不使用非贪婪的字符

来源:互联网 

Is there anyway to get a regex pattern to automatically stop searching after one match. I'd like to add regex searching to a web service I'm trying to create, but I don't want someone to be able to run a regex that would take a long time, just one match is good enough. Is this possible?Is there anyway to get a regex pattern to autom




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: