哈哈,谢谢了,原来文档里面有呀。
Special constructs (non-capturing)
(?:X)
X, as a non-capturing group
(?idmsux-idmsux)
Nothing, but turns match flags id m su x on - off
(?idmsux-idmsux:X)
X, as a non-capturing group with the given flags i dm s ux on - off
(?=X)
X, via zero-width positive lookahead
(?!X)
X, via zero-width negative lookahead
(?<=X)
X, via zero-width positive lookbehind
(?<!X)
X, via zero-width negative lookbehind
(?>X)
X, as an independent, non-capturing group
好分是你的啦。