mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
refactor: 修改email标题体现"邮箱"2字, 方便搜索
This commit is contained in:
parent
1776f6ed10
commit
f2c06ffc51
34
README.md
34
README.md
@ -1,19 +1,19 @@
|
|||||||
# 正则大全    [](https://circleci.com/gh/any86/any-rule)
|
# 正则大全    [](https://circleci.com/gh/any86/any-rule)
|
||||||
|
|
||||||
支持**图形界面** / **vscode插件**2种查询方式.
|
支持**图形界面** / **vscode插件**2种查询方式.
|
||||||
|
|
||||||
## :whale:图形界面
|
## :whale:图形界面
|
||||||
https://any86.github.io/any-rule/
|
https://any86.github.io/any-rule/
|
||||||
|
|
||||||
## vscode插件
|
## vscode插件
|
||||||
1. 安装vscode中插件搜索框输入**any-rule**
|
1. 安装vscode中插件搜索框输入**any-rule**
|
||||||
2. 安装完毕后按**F1**(或者ctrl+shift+p).
|
2. 安装完毕后按**F1**(或者ctrl+shift+p).
|
||||||
3. 输入"**zz**"可以看到正则列表.
|
3. 输入"**zz**"可以看到正则列表.
|
||||||
4. 或者**输入关键词**, 比如"手机".
|
4. 或者**输入关键词**, 比如"手机".
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 正则
|
## 正则
|
||||||
|
|
||||||
### 迅雷链接
|
### 迅雷链接
|
||||||
```javascript
|
```javascript
|
||||||
@ -170,7 +170,7 @@ https://any86.github.io/any-rule/
|
|||||||
/^\d{4}(-)(1[0-2]|0?\d)\1([0-2]\d|\d|30|31)$/
|
/^\d{4}(-)(1[0-2]|0?\d)\1([0-2]\d|\d|30|31)$/
|
||||||
```
|
```
|
||||||
|
|
||||||
### email地址
|
### 邮箱地址(email)
|
||||||
```javascript
|
```javascript
|
||||||
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
|
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
|
||||||
```
|
```
|
||||||
|
@ -159,7 +159,7 @@ module.exports = [
|
|||||||
examples: ['1990-12-12', '2020-1-1']
|
examples: ['1990-12-12', '2020-1-1']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'email地址',
|
title: '邮箱地址(email)',
|
||||||
rule: /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
|
rule: /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
|
||||||
examples: ['90203918@qq.com', 'nbilly@126.com']
|
examples: ['90203918@qq.com', 'nbilly@126.com']
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user