Giter Club home page Giter Club logo

Comments (11)

any86 avatar any86 commented on August 17, 2024

可以, 我整理下 🐳

from any-rule.

huatten avatar huatten commented on August 17, 2024

@fariellany 应该是阔以的

from any-rule.

any86 avatar any86 commented on August 17, 2024

先把端口号加上, 做个记录

/^((https?|ftp):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/\w\.-]*)*(?::[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|6[0-5][0-4]\d{2}|6[0-5][0-5][0-2]\d{1}|6[0-5][0-5][0-3][0-5])?\/?$/

from any-rule.

fariellany avatar fariellany commented on August 17, 2024

先把端口号加上, 做个记录

/^((https?|ftp):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/\w\.-]*)*(?::[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|6[0-5][0-4]\d{2}|6[0-5][0-5][0-2]\d{1}|6[0-5][0-5][0-3][0-5])?\/?$/

这个是端口号??

from any-rule.

any86 avatar any86 commented on August 17, 2024

先把端口号加上, 做个记录

/^((https?|ftp):\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/\w\.-]*)*(?::[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|6[0-5][0-4]\d{2}|6[0-5][0-5][0-2]\d{1}|6[0-5][0-5][0-3][0-5])?\/?$/

这个是端口号??

这个是带端口号的网址, 单独端口号是这个:

/^(?:[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|6[0-5][0-4]\d{2}|6[0-5][0-5][0-2]\d{1}|6[0-5][0-5][0-3][0-5])$/

from any-rule.

any86 avatar any86 commented on August 17, 2024

@fariellany 但是我不打算单独收录"端口"正则, 网页上只会收录带"端口号的网址"正则

from any-rule.

any86 avatar any86 commented on August 17, 2024

@fariellany zhe这种匹配数字的正则我写了个函数, 以后可以任意匹配数字了 🐳 稍后我加到页面

image

from any-rule.

any86 avatar any86 commented on August 17, 2024

刚造完, 想发npm, 发现有人早就做了一个更好的, 哎

https://www.npmjs.com/package/to-regex-range

from any-rule.

any86 avatar any86 commented on August 17, 2024

来吧帮忙测测, 稳定了就发布到vscode中

from any-rule.

fariellany avatar fariellany commented on August 17, 2024

刚造完, 想发npm, 发现有人早就做了一个更好的, 哎

https://www.npmjs.com/package/to-regex-range

来吧帮忙测测, 稳定了就发布到vscode中

@fariellany zhe这种匹配数字的正则我写了个函数, 以后可以任意匹配数字了 🐳 稍后我加到页面

image

很不错了 大哥 谢谢

from any-rule.

any86 avatar any86 commented on August 17, 2024

@fariellany 客气 🐳

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.