Comments (10)
提了一个PR: #33
from chinamobilephonenumberregex.
具体是哪个号段没有支持呢?你提的这两个号段已经是支持了。
from chinamobilephonenumberregex.
具体是哪个号段没有支持呢?你提的这两个号段已经是支持了。
145(联通)和147(移动) ,原先好像不支持的,你看一下PR上的改动
from chinamobilephonenumberregex.
from chinamobilephonenumberregex.
例如这个正则 手机卡 - 匹配所有 这个正则返回false
/^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[235-8]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|66\d{2})\d{6}$/.test('14512345678')
from chinamobilephonenumberregex.
增加145/147之后的正则可以返回true
/^(?:\+?86)?1(?:3\d{3}|4[57]\d{2}|5[^4\D]\d{2}|8\d{3}|7(?:[235-8]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|66\d{2})\d{6}$/.test('14512345678')
from chinamobilephonenumberregex.
懂了,是在后面,但是好像不能识别
from chinamobilephonenumberregex.
你可能理解错了这个分类。这个项目里的号码卡是分为手机卡、数据卡和上网卡,你那个 145 是属于上网卡的,手机卡的正则不匹配是正常的。你可以用这个正则
from chinamobilephonenumberregex.
好的,谢谢
from chinamobilephonenumberregex.
不客气,有问题再留言。
from chinamobilephonenumberregex.
Related Issues (20)
- 工信部放出新电信网码号:联通获得167号段 电信获得191号段 HOT 1
- 遇到携号转网号码验证问题不知道如何验证运营商了? HOT 6
- 在awk中无法匹配 HOT 5
- 缺少小米手机卡170和171的支持 HOT 1
- 部分正常号码被过滤了 HOT 2
- 考虑提供一个定时更新的api? HOT 1
- 目前已经出现171开头的号码 HOT 1
- 匹配所有手机号的那个表达式,不能匹配 19521302521 这种 HOT 2
- 172号段 HOT 2
- 号段的添加和去除 HOT 4
- 请问作者是如何验证正则表达式真的囊括到对应的手机号? HOT 2
- 可以考虑加一下固话的正则 HOT 3
- 无法匹配国内147开头的电话号 HOT 2
- 提交个bug HOT 22
- 缺少对175号码段的支持 HOT 3
- Release Notes
- 多语言单元测试 HOT 6
- 工信部批准了新号段 HOT 1
- Update for the past year changes. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinamobilephonenumberregex.