Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@curong/regexp

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curong/regexp

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@curong/regexp

@curong/regexp 主要包含以下的方法:

  • execAll: 循环遍历 RegExp.exec 方法捕获到的内容
  • inChinese: 是否包含中文汉字
  • inChkPunctuation: 是否包含中日韩标点符号
  • inJapanese: 是否包含日文
  • isEmail: 是否为合法的邮箱地址
  • isIp: 是不是一个 IP 地址
  • isURI: 是否为合法的链接地址
  • mapReplace: 使用一组正则表达式来替换字符串中的内容
  • matchNextIndex: 获取正则匹配对象的当前项的下一个字符的开始索引位置
  • testEvery: 使用一组正则来验证一个字符串是否符合预期
  • testSome: 使用一组正则来验证一个字符串是否符合预期

@curong/regexp 主要包含以下的属性:

  • ascii: 验证 ASCII 的正则字符串
  • blank: 验证所有的空白字符的正则字符串,比如空格
  • chkPunctuation: 验证中日韩的标点符号的正则字符串
  • control: 验证所有的控制字符的正则字符串,包含 \r\n\t 等等
  • email: 验证邮箱的正则字符串
  • han: 验证汉文的正则字符串 (包含特殊字符)
  • hiragana: 验证平假名的正则字符串
  • japanese: 验证日文的正则字符串
  • katakana: 验证片假名的正则字符串
  • korean: 验证韩文的正则字符串
  • punctuation: 验证所有的标点符号的正则字符串
  • unifiedIdeograph: 验证中文汉字的正则字符串
  • uri: 验证 URI 连接的正则字符串

FAQs

Package last updated on 13 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc