mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
docs: 更新文档
This commit is contained in:
parent
f94edfbfcf
commit
50f935533a
13
README.md
13
README.md
@ -1,11 +1,8 @@
|
||||
# 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 ```
|
||||
# any-rule
|
||||
正则大全
|
||||
https://any86.github.io/any-rule/
|
||||
|
||||
## 银行卡号(16或19位)
|
||||
```javascript
|
||||
/^([1-9]{1})(\d{15}|\d{18})$/
|
||||
```
|
||||
@ -37,7 +34,7 @@ https://any86.github.io/any-rule/
|
||||
|
||||
## 手机号
|
||||
```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}$/
|
||||
```
|
||||
|
||||
## 大写字母
|
||||
|
Loading…
x
Reference in New Issue
Block a user