需求:
逗号分隔的字符组,one,two,three
方法:
\b(?:(?:(one)|(two)|(three))(?:,|\b)){3,}(?(1)|(?!))(?(2)|(?!))(?(3)|(?!))
小结:
(?(1)then|else)
or
(?(name)then|else)
需求:
逗号分隔的字符组,one,two,three
方法:
\b(?:(?:(one)|(two)|(three))(?:,|\b)){3,}(?(1)|(?!))(?(2)|(?!))(?(3)|(?!))
小结:
(?(1)then|else)
or
(?(name)then|else)