还是说是我的写法错误?
我本意是想匹配
a (任意非&) c
或者
b (任意非&) c
或者
a (任意非&) d
或者
b (任意非&) d
然是并不想捕获 ab 或 cd 这两个组。,然而报错,
另外, js 中似乎也不能使用零宽断言?

1
wizardoz 2016 年 5 月 16 日
反正在 python 中是 (?:a|b)
|
5
murmur 2016 年 5 月 16 日
(?:x)
Matches 'x' but does not remember the match. The parentheses are called non-capturing parentheses |