需求:
逗号分隔的字符组,one,two,three
方法:
\b(?:(?:(one)|(two)|(three))(?:,|\b)){3,}(?(1)|(?!))(?(2)|(?!))(?(3)|(?!))
小结:
(?(1)then|else)
or
(?(name)then|else)
原文链接:https://www.f2er.com/regex/361816.html需求:
逗号分隔的字符组,one,two,three
方法:
\b(?:(?:(one)|(two)|(three))(?:,|\b)){3,}(?(1)|(?!))(?(2)|(?!))(?(3)|(?!))
小结:
(?(1)then|else)
or
(?(name)then|else)
原文链接:https://www.f2er.com/regex/361816.html