匹配前面的子表达式零次或一次。例如,"do(es)?" 可以匹配 "do" 或 "does" 。? 等价于 {0,1}。

90 阅读1分钟

does?

没有括号时,?标识匹配s零次或者一次