Remove redundant \ (#604)

This commit is contained in:
Hongkuan Wang
2020-10-09 16:11:51 +08:00
committed by GitHub
parent 71ff462b5d
commit 35a32719aa

View File

@@ -801,10 +801,10 @@ the mightiest banana in the forest...with... a banana!
| 表达式 | 含义 |
| :---- | :---- |
| `.` | 任意字符 |
| `[abc]` |包含`a``b``c`的任何字符(和`a\|b\|c`作用相同)|
| `[abc]` |包含`a``b``c`的任何字符(和`a|b|c`作用相同)|
| `[^abc]` | 除`a``b``c`之外的任何字符(否定) |
| `[a-zA-Z]` | 从`a``z`或从`A``Z`的任何字符(范围) |
| `[abc[hij]]` | `a``b``c``h``i``j`中的任意字符(与`a\|b\|c\|h\|i\|j`作用相同)(合并) |
| `[abc[hij]]` | `a``b``c``h``i``j`中的任意字符(与`a|b|c|h|i|j`作用相同)(合并) |
| `[a-z&&[hij]]` | 任意`h``i``j`(交) |
| `\s` | 空白符空格、tab、换行、换页、回车 |
| `\S` | 非空白符(`[^\s]` |
@@ -818,7 +818,7 @@ the mightiest banana in the forest...with... a banana!
| 逻辑操作符 | 含义 |
| :----: | :---- |
| `XY` | `Y`跟在`X`后面 |
| `X\|Y` | `X``Y` |
| `X|Y` | `X``Y` |
| `(X)` | 捕获组capturing group。可以在表达式中用`\i`引用第i个捕获组 |
下面是不同的边界匹配符: