| (表达式 或) |
Top Previous Next |
当一个表达式或者另一个表达式可以匹配时就使用 | 。
例如:
表达式 '(stabilised|stabilized) condition' 和 'stabili(z|s)ed condition' 都可以匹配上 'stabilised condition' 和 'stabilized condition' 。
'(1|2|3) (person|people)'将匹配 '1 person' 和 '2 people' 和 '3 people' ,但不会匹配 '4 people' (它还可以匹配'2 person' 等等。)注意:还可以用一个 字符列表 来表达此表达式。 |