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
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 regexitsTo 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