Giter Site home page Giter Site logo

Comments (10)

yinjs avatar yinjs commented on May 18, 2024

提了一个PR: #33

from chinamobilephonenumberregex.

VincentSit avatar VincentSit commented on May 18, 2024

具体是哪个号段没有支持呢?你提的这两个号段已经是支持了。

from chinamobilephonenumberregex.

yinjs avatar yinjs commented on May 18, 2024

具体是哪个号段没有支持呢?你提的这两个号段已经是支持了。

145(联通)和147(移动) ,原先好像不支持的,你看一下PR上的改动

from chinamobilephonenumberregex.

VincentSit avatar VincentSit commented on May 18, 2024

支持的。高频使用的在左侧,14 之类的在尾部。
image

from chinamobilephonenumberregex.

yinjs avatar yinjs commented on May 18, 2024

例如这个正则 手机卡 - 匹配所有 这个正则返回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.

yinjs avatar yinjs commented on May 18, 2024

支持的。高频使用的在左侧,14 之类的在尾部。
image

增加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.

yinjs avatar yinjs commented on May 18, 2024

懂了,是在后面,但是好像不能识别

from chinamobilephonenumberregex.

VincentSit avatar VincentSit commented on May 18, 2024

你可能理解错了这个分类。这个项目里的号码卡是分为手机卡、数据卡和上网卡,你那个 145 是属于上网卡的,手机卡的正则不匹配是正常的。你可以用这个正则

from chinamobilephonenumberregex.

yinjs avatar yinjs commented on May 18, 2024

好的,谢谢

from chinamobilephonenumberregex.

VincentSit avatar VincentSit commented on May 18, 2024

不客气,有问题再留言。

from chinamobilephonenumberregex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.