diff --git a/docs/regex.md b/docs/regex.md index ec769ba..ad438b9 100644 --- a/docs/regex.md +++ b/docs/regex.md @@ -616,7 +616,7 @@ M(?(?=.*?\bher\b)s|r)\. 表达式 | 匹配示例 :- | - `The` | The `fat` cat sat on the mat. -`/The/gi` | The `fat` `cat` `sat` on the `mat`. +`/The/gi` | `The` fat cat sat on `the` mat. 修饰语 `i` 用于忽略大小写,`g` 表示全局搜索。