Skip to content

Commit

Permalink
FIxed cdoco#1, Add 166/199 cell phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoco committed Jun 24, 2018
1 parent c10042b commit 4a4c439
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 28 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 ZiHang Gao <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Common Regular Expression

![Regex](images/regex.png)
<div align="center">
<p><img src="http://openlogos.org/logos/neo.jpg" /></p>
</div>

## 目录

Expand All @@ -10,31 +10,31 @@
- [IP](#ip)
- [帐号校验](#帐号校验)
- [字符校验](#字符校验)
- [汉字](#汉字)
- [英文和数字](#英文和数字)
- [长度为3-20的所有字符](#长度为3-20的所有字符)
- [英文字符](#由英文字符)
- [由26个英文字母组成的字符串](#由26个英文字母组成的字符串)
- [由26个大写英文字母组成的字符串](#由26个大写英文字母组成的字符串)
- [由26个小写英文字母组成的字符串](#由26个小写英文字母组成的字符串)
- [由数字和26个英文字母组成的字符串](#由数字和26个英文字母组成的字符串)
- [由数字、26个英文字母或者下划线组成的字符串](#由数字26个英文字母或者下划线组成的字符串)
- [中文、英文、数字包括下划线](#中文英文数字包括下划线)
- [中文、英文、数字但不包括下划线等符号](#中文英文数字但不包括下划线等符号)
- [禁止输入含有^%&',;=?$\"等字符](#禁止输入含有等字符)
- [禁止输入含有~的字符](#禁止输入含有的字符)
- [汉字](#汉字)
- [英文和数字](#英文和数字)
- [长度为3-20的所有字符](#长度为3-20的所有字符)
- [英文字符](#由英文字符)
- [由26个英文字母组成的字符串](#由26个英文字母组成的字符串)
- [由26个大写英文字母组成的字符串](#由26个大写英文字母组成的字符串)
- [由26个小写英文字母组成的字符串](#由26个小写英文字母组成的字符串)
- [由数字和26个英文字母组成的字符串](#由数字和26个英文字母组成的字符串)
- [由数字、26个英文字母或者下划线组成的字符串](#由数字26个英文字母或者下划线组成的字符串)
- [中文、英文、数字包括下划线](#中文英文数字包括下划线)
- [中文、英文、数字但不包括下划线等符号](#中文英文数字但不包括下划线等符号)
- [禁止输入含有^%&',;=?$\"等字符](#禁止输入含有等字符)
- [禁止输入含有~的字符](#禁止输入含有的字符)
- [数字正则](#数字正则)
- [整数](#整数)
- [正整数](#正整数)
- [负整数](#负整数)
- [非负整数](#非负整数)
- [非正整数](#非正整数)
- [浮点数](#浮点数)
- [正浮点数](#正浮点数)
- [负浮点数](#负浮点数)
- [非负浮点数](#非负浮点数)
- [非正浮点数](#非正浮点数)
- [整数](#整数)
- [正整数](#正整数)
- [负整数](#负整数)
- [非负整数](#非负整数)
- [非正整数](#非正整数)
- [浮点数](#浮点数)
- [正浮点数](#正浮点数)
- [负浮点数](#负浮点数)
- [非负浮点数](#非负浮点数)
- [非正浮点数](#非正浮点数)

## 邮箱

`[email protected]` 只允许英文字母、数字、下划线、英文句号、以及中划线组成
Expand All @@ -58,7 +58,7 @@
`13012345678` 手机号

```regex
^1(3|4|5|7|8)\d{9}$
^1(3|4|5|6|7|8|9)\d{9}$
```

![phone](images/phone.png)
Expand Down
Binary file modified images/phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a4c439

Please sign in to comment.