Skip to content

Commit 3cb7983

Browse files
abelzhouziishaned
authored andcommitted
更新了部分译文 (ziishaned#56)
* Update README-cn.md * Update README-cn.md
1 parent 94c90e6 commit 3cb7983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
1717

1818
一个正则表达式是在一个主体字符串中从左到右匹配字符串时的一种样式.
19-
例如"Regular expression"是一个完整的句子, 但我们常使用缩写的术语"regex"或"regexp".
20-
正则表达式可以用来替换文本中的字符串,验证形式,提取字符串等等.
19+
"Regular expression"这个词比较拗口, 我们常使用缩写的术语"regex"或"regexp".
20+
正则表达式可以从一个基础字符串中根据一定的匹配模式替换文本中的字符串、验证表单、提取字符串等等.
2121

2222
想象你正在写一个应用, 然后你想设定一个用户命名的规则, 让用户名包含字符,数字,下划线和连字符,以及限制字符的个数,好让名字看起来没那么丑.
2323
我们使用以下正则表达式来验证一个用户名:

0 commit comments

Comments
 (0)