JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q37678F
  • License MIT

regexits will perform curated regex on a strings

Package Exports

  • regexits

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (regexits) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

Regexits a light weight regex npm package for common used regex matches


My open source work is supported by the community, become a sponser today!

To install

npm install regexits

To Use

const regexits = require('regexits')

regexits(string, pattern)

Quick Example

const regexits = require('regexits')

regexit('012-34-5678', 'SSN')

Patterns that are current usable

  • DateSlashes
  • Time24hr
  • ISO8601DT
  • HTMLtag
  • HEXColor
  • URLSlug
  • SrcImgTag
  • URL
  • PosInt
  • NegInt
  • Integer
  • PosNum
  • NegNum
  • Num
  • PhoneNum
  • NewLine
  • CSSComment
  • USCAZip
  • SSN
  • IPV4
  • IPV6
  • IPV4ORV6
  • InternationalPhone
  • VISA
  • MASTERCARD
  • AMEX
  • DINERS
  • DISCOVER
  • JCB

Reporting issue / Feature (new pattern)

To report issue please use the issue template in the repo to follow.

To Contribute

To contribute please create a pull request