fix an explanatory error

In the explanation ‘例如, 表达式 `/at(.)?$/gm` 表示在待检测字符串每行的末尾搜索 `at`后跟一个或多个 `.` 的字符串, 并返回全部结果.‘

‘一个或多个’ should be  ‘0个或1个’.
This commit is contained in:
Lee Sure 2017-11-13 11:40:14 +08:00 committed by GitHub
parent f160d21c0c
commit 539e963955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,7 +453,7 @@
像之前介绍的 `(^,$)` 用于检查格式是否是在待检测字符串的开头或结尾. 但我们如果想要它在每行的开头和结尾生效, 我们需要用到多行修饰符 `m`.
例如, 表达式 `/at(.)?$/gm` 表示在待检测字符串每行的末尾搜索 `at`后跟一个或多`.` 的字符串, 并返回全部结果.
例如, 表达式 `/at(.)?$/gm` 表示在待检测字符串每行的末尾搜索 `at`后跟0个或1`.` 的字符串, 并返回全部结果.
<pre>
"/.at(.)?$/" => The fat