Skip to content

Commit 35a3271

Browse files
author
Hongkuan Wang
authored
Remove redundant \ (lingcoder#604)
1 parent 71ff462 commit 35a3271

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/book/18-Strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,10 +801,10 @@ the mightiest banana in the forest...with... a banana!
801801
| 表达式 | 含义 |
802802
| :---- | :---- |
803803
| `.` | 任意字符 |
804-
| `[abc]` |包含`a`、`b`或`c`的任何字符(和`a\|b\|c`作用相同)|
804+
| `[abc]` |包含`a`、`b`或`c`的任何字符(和`a|b|c`作用相同)|
805805
| `[^abc]` | 除`a`、`b`和`c`之外的任何字符(否定) |
806806
| `[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`作用相同)(合并) |
808808
| `[a-z&&[hij]]` | 任意`h`、`i`或`j`(交) |
809809
| `\s` | 空白符(空格、tab、换行、换页、回车) |
810810
| `\S` | 非空白符(`[^\s]`) |
@@ -818,7 +818,7 @@ the mightiest banana in the forest...with... a banana!
818818
| 逻辑操作符 | 含义 |
819819
| :----: | :---- |
820820
| `XY` | `Y`跟在`X`后面 |
821-
| `X\|Y` | `X`或`Y` |
821+
| `X|Y` | `X`或`Y` |
822822
| `(X)` | 捕获组(capturing group)。可以在表达式中用`\i`引用第i个捕获组 |
823823

824824
下面是不同的边界匹配符:

0 commit comments

Comments
 (0)