File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -801,10 +801,10 @@ the mightiest banana in the forest...with... a banana!
801
801
| 表达式 | 含义 |
802
802
| : ---- | : ---- |
803
803
| `. ` | 任意字符 |
804
- | `[abc]` | 包含`a`、`b`或`c`的任何字符(和`a\ | b\ | c`作用相同)|
804
+ | `[abc]` | 包含`a`、`b`或`c`的任何字符(和`a| b | c`作用相同)|
805
805
| `[^ abc]` | 除`a`、`b`和`c`之外的任何字符(否定) |
806
806
| `[a- zA- Z ]` | 从`a`到`z`或从`A `到`Z `的任何字符(范围) |
807
- | `[abc[hij]]` | `a`、`b`、`c`、`h`、`i`、`j`中的任意字符(与`a\ | b\ | c\ | h\ | i\ | j`作用相同)(合并) |
807
+ | `[abc[hij]]` | `a`、`b`、`c`、`h`、`i`、`j`中的任意字符(与`a| b | c | h | i | j`作用相同)(合并) |
808
808
| `[a- z&& [hij]]` | 任意`h`、`i`或`j`(交) |
809
809
| `\s` | 空白符(空格、tab、换行、换页、回车) |
810
810
| `\S ` | 非空白符(`[^ \s]`) |
@@ -818,7 +818,7 @@ the mightiest banana in the forest...with... a banana!
818
818
| 逻辑操作符 | 含义 |
819
819
| : ---- : | : ---- |
820
820
| `XY ` | `Y `跟在`X `后面 |
821
- | `X \ | Y ` | `X `或`Y ` |
821
+ | `X | Y ` | `X `或`Y ` |
822
822
| `(X )` | 捕获组(capturing group)。可以在表达式中用`\i`引用第i个捕获组 |
823
823
824
824
下面是不同的边界匹配符:
You can’t perform that action at this time.
0 commit comments