Add Regex

This commit is contained in:
AnonymousUser
2020-09-16 23:04:16 +08:00
parent 4b7571c6c9
commit ff2ea01ab1

View File

@@ -89,9 +89,15 @@ Github项目地址BUG、需求、正则欢迎提交https://github.com/g
### 收录正则列表 ### 收录正则列表
身份证号码来自https://github.com/gh0stkey/HaE/issues/3
| 名称 | 正则 | ```
|----|----| [^0-9]([1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx])|([1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9Xx])[^0-9]
| 身份证号码 | `[^0-9]([1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx])|([1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9Xx])[^0-9]` | ```
| 邮箱 | `([\w-]+(?:\.[\w-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?)` |
邮箱地址:
```
([\w-]+(?:\.[\w-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?)
```