阅读背景:

当regexp与空字符串匹配时,是否可以使用regexp.exec循环模拟string.match?

来源:互联网 

It is common knowledge that the exec method from RegExps can get used to find all matches in a string. However, I just found out that if the regexp matches the empty string this loop can get stuck foreverIt is common knowledge that the exec method fro




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

分享到: