Skip to content

Commit 78b2330

Browse files
authored
Merge pull request cdoco#1 from fanofxiaofeng/patch-1
疑似漏了一个"^"字符
2 parents f28ef1b + 05234fa commit 78b2330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
### 2.8.1 插入符号
214214

215215
插入符号 `^` 符号用于检查匹配字符是否是输入字符串的第一个字符。如果我们使用正则表达式 `^a` (如果a是起始符号)匹配字符串 `abc`,它会匹配到 `a`
216-
但是如果我们使用正则表达式 `b`,它是匹配不到任何东西的,因为在字符串 `abc` 中 "b" 不是起始字符。
216+
但是如果我们使用正则表达式 `^b`,它是匹配不到任何东西的,因为在字符串 `abc` 中 "b" 不是起始字符。
217217
让我们来看看另一个正则表达式 `^(T|t)he`,这表示: 大写字母 `T` 或小写字母 `t` 是输入字符串的起始符号,后面跟着小写字母 `h`,后跟小写字母 `e`
218218

219219
<pre>

0 commit comments

Comments
 (0)