Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

正则大全 #4

Open
tYan-sz opened this issue Mar 5, 2020 · 0 comments
Open

正则大全 #4

tYan-sz opened this issue Mar 5, 2020 · 0 comments

Comments

@tYan-sz
Copy link
Owner

tYan-sz commented Mar 5, 2020

中国手机号(严谨), 根据工信部2019年最新公布的手机号段
/^(?:(?:+|00)86)?1(?:(?:3[\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1|8|9]))\d{8}$/

中国手机号(宽松), 只要是13,14,15,16,17,18,19开头即可
/^(?:(?:+|00)86)?1[3-9]\d{9}$/

统一社会信用代码
/^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/

@tYan-sz tYan-sz changed the title 正则大全你 正则大全 Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant