auto commit

This commit is contained in:
CyC2018
2018-04-03 09:54:51 +08:00
parent edeee57a99
commit 9a76762aa5
3 changed files with 5 additions and 17 deletions

View File

@ -118,7 +118,7 @@ abc[^0-9]
**正则表达式**
```
[\w.]+@\w+.\w+
[\w.]+@\w+\.\w+
```
[\w.] 匹配的是字母数字或者 . ,在其后面加上 + ,表示匹配多次。在字符集合 [ ] 里,. 不是元字符;
@ -130,8 +130,8 @@ abc[^0-9]
为了可读性,常常把转义的字符放到字符集合 [ ] 中,但是含义是相同的。
```
[\w.]+@\w+.\w+
[\w.]+@[\w]+.[\w]+
[\w.]+@\w+\.\w+
[\w.]+@[\w]+\.[\w]+
```
**{n}** 匹配 n 个字符,**{m, n}** 匹配 m\~n 个字符,**{m,}** 至少匹配 m 个字符;