阅读背景:

匹配xa?b?c的正则表达式?但不是单独的x

来源:互联网 

I'm trying to write a regex that matches xa?b?c? but not x. In reality, 'x', 'a', 'b', and 'c' are not single characters, they are moderately complex sub-expressions, so I'm trying to avoid something like x(abc|ab|ac|bc|a|b|c). Is there a simple way to match "at least one of a, b, and c, in that order" in a regex, or am I out of luck?I'm trying to write a regex that matches xa?b?c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: