Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正则表达式是否X•(Y*+Z)接受这个词X?
X•(Y*+Z)
X
我会说它确实如此,Y=ε应该满足析取,但我不确定。
Y=ε
是的,匹配 0 次仍然算成功。
或者,从另一个方向看,您的正则表达式会生成
X XY XZ XYY XYYY XYYYY ...