[英]invalid regexp group
I have regular expression 我有正则表达式
(?<=\\s)(?:#sidebar-right-1|#BlogArchive1|#ArchiveList|#BlogArchive1_ArchiveList|#PopularPosts)(?=\\s|{)
I got syntax error invalid regex group. 我收到语法错误无效的正则表达式组。 Where is problem? 问题在哪里?
I applied it like this: 我像这样应用它:
rules[r].selectorText.match(new RegExp(ids, 'gm')) Rules [r] .selectorText.match(new RegExp(ids,'gm'))
看来javascript的正则表达式不支持肯定的后向断言(即(?<=\\s)
部分)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.