阅读背景:

Javascript Regex:用字符串计算未转义的引号

来源:互联网 

I'm trying to find a regex in Javascript for a seemingly simple problem, but I have been beating my head against the wall all morning about it. I'm trying to count the quotation symbols that occur in a string with string.match. The catch is that escaped quotation symbols should not be counted, but quotations which are preceded by an escaped backslash should be again.I'm trying to find a regex in Javascript for a




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

分享到: