Git Product home page Git Product logo

Comments (13)

any86 avatar any86 commented on August 28, 2024 1

好用就行, 你先用着, 我稍后再优化优化, 然后收录到网站

'91110108101966816T'.match(/^\d+(\d{9})/)

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024 1

就是看mdn文档, 多写多练, 我也是因为维护这个才用的熟练, 你平时主要工作用正则地方少, 练得少

get了,感谢,平时工作确实不怎么用,找个时间看看。

from any-rule.

any86 avatar any86 commented on August 28, 2024

image
@hpg-github 是这个意思吗?

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024

图片
@ HPG-GitHub的是这个意思吗?

没毛病,好强大的正则,之前一直以为只是校验类的可以。get了

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024

好用就行, 你先用着, 我稍后再优化优化, 然后收录到网站

'91110108101966816T'.match(/^\d+(\d{9})/)

感谢

from any-rule.

any86 avatar any86 commented on August 28, 2024

@hpg-github 不客气

from any-rule.

any86 avatar any86 commented on August 28, 2024

@hpg-github 最后一位一定是大写字母吗?

from any-rule.

any86 avatar any86 commented on August 28, 2024
('91110108101966816T').match(/^(?:\d|[A-Z])+((?:\d|[A-Z]){9})(?:\d|[A-Z])$/i)

我有看了看"社会信用代码"的介绍, 你用这个,之前那个不行

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024

@hpg-github 最后一位一定是大写字母吗?

我刚刚查了查 ,不一定是大写的英文字母
91210200MA0QE7GT5L 91210200MA0QE7PH40 91210200710931264L
912102316738119081 91210231693282716J 91210200317986672Y
91210200MA0QCLUJXK 难搞啊

from any-rule.

any86 avatar any86 commented on August 28, 2024

@hpg-github 用这个

('91110108101966816T').match(/^(?:\d|[A-Z])+((?:\d|[A-Z]){9})(?:\d|[A-Z])$/i)[1]

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024
('91110108101966816T').match(/^(?:\d|[A-Z])+((?:\d|[A-Z]){9})(?:\d|[A-Z])$/i)

我有看了看"社会信用代码"的介绍, 你用这个? 之前那个不行

你在那学的正则 我也想写,我再试试

from any-rule.

a-big-cutie avatar a-big-cutie commented on August 28, 2024

@hpg-github 用这个

('91110108101966816T').match(/^(?:\d|[A-Z])+((?:\d|[A-Z]){9})(?:\d|[A-Z])$/i)[1]

可以了 ,感谢

from any-rule.

any86 avatar any86 commented on August 28, 2024

就是看mdn文档, 多写多练, 我也是因为维护这个才用的熟练, 你平时主要工作用正则地方少, 练得少

from any-rule.

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.