docs: 更新文档

This commit is contained in:
宁宁 2019-07-03 10:40:23 +08:00
parent f94edfbfcf
commit 50f935533a

View File

@ -1,11 +1,8 @@
# any-rule # any-rule
正则大全 正则大全
https://any86.github.io/any-rule/ https://any86.github.io/any-rule/
## 银行卡号
备注16或者19位第一位不为0具体每个银行正则参考 [匹配国内主流银行卡的正则](https://gist.github.com/yanweijia/7fea45eab57a0ff355d71546411b004a)
或者可以直接调用支付宝提供的接口:
``` https://ccdcapi.alipay.com/validateAndCacheCardInfo.json?_input_charset=utf-8&cardNo=6214832018989180 &cardBinCheck=true ```
## 银行卡号16或19位
```javascript ```javascript
/^([1-9]{1})(\d{15}|\d{18})$/ /^([1-9]{1})(\d{15}|\d{18})$/
``` ```
@ -37,7 +34,7 @@ https://any86.github.io/any-rule/
## 手机号 ## 手机号
```javascript ```javascript
/^1((3[\d])|(4[5,6,9])|(5[0-3,5-9])|(6[5-7])|(7[0-8])|(8[1-3,5-8])|(9[1,8,9]))\d{8}$/ /^1((3[\d])|(4[5,6,7,9])|(5[0-3,5-9])|(6[5-7])|(7[0-8])|(8[\d])|(9[1,8,9]))\d{8}$/
``` ```
## 大写字母 ## 大写字母