Skip to content

Commit 7ddb3f6

Browse files
lzljbscziishaned
authored andcommitted
Add some compatible character set (ziishaned#64)
修改一处错别字 添加部分简写字符集
1 parent 9483a3f commit 7ddb3f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README-cn.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277

278278
`^` 用来检查匹配的字符串是否在所匹配字符串的开头.
279279

280-
例如, 在 `abc` 中使用表达式 `^a` 会得到结果 `a`. 但如果使用 `^b` 将匹配不到任何结果. 应为在字符串 `abc` 中并不是以 `b` 开头.
280+
例如, 在 `abc` 中使用表达式 `^a` 会得到结果 `a`. 但如果使用 `^b` 将匹配不到任何结果. 因为在字符串 `abc` 中并不是以 `b` 开头.
281281

282282
例如, `^(T|t)he` 匹配以 `The``the` 开头的字符串.
283283

@@ -324,6 +324,12 @@
324324
|\D|匹配非数字: `[^\d]`|
325325
|\s|匹配所有空格字符, 等同于: `[\t\n\f\r\p{Z}]`|
326326
|\S|匹配所有非空格字符: `[^\s]`|
327+
|\f|匹配一个换页符|
328+
|\n|匹配一个换行符|
329+
|\r|匹配一个回车符|
330+
|\t|匹配一个制表符|
331+
|\v|匹配一个垂直制表符|
332+
|\p|匹配 CR/LF (等同于 `\r\n`),用来匹配 DOS 行终止符|
327333

328334
## 4. 前后关联约束(前后预查)
329335

0 commit comments

Comments
 (0)