diff --git a/README-cn.md b/README-cn.md index 97725f6..8306e36 100644 --- a/README-cn.md +++ b/README-cn.md @@ -261,7 +261,7 @@ 反斜线 `\` 在表达式中用于转码紧跟其后的字符. 用于指定 `{ } [ ] / \ + * . $ ^ | ?` 这些特殊字符. 如果想要匹配这些特殊字符则要在其前面加上反斜线 `\`. -例如 `.` 是用来匹配除换行符外的所有字符的. 如果想要匹配句子中的 `.` 则要写成 `\.`. +例如 `.` 是用来匹配除换行符外的所有字符的. 如果想要匹配句子中的 `.` 则要写成 `\.` 以下这个例子 `\.?`是选择性匹配`.`
"(f|c|m)at\.?" => The fat cat sat on the mat. diff --git a/README.md b/README.md index 5cd8538..fa8e675 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ zero or more spaces. ### 2.3.2 The Plus The symbol `+` matches one or more repetitions of the preceding character. For example, the regular expression `c.+t` means: lowercase -letter `c`, followed by at least one character, followed by the lowercase character `t`. +letter `c`, followed by at least one character, followed by the lowercase character `t`. It needs to be clarified that `t` is the last `t` in the sentence."c.+t" => The fat cat sat on the mat.