JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q47776F
  • 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

Welcome to Regexits 👋

Documentation Maintenance License: MIT Twitter: james_r_perkins

Regexits is a curated package to handle regex on your next project

🏠 Homepage

Install

npm install

Run tests

npm run test

How to use

const regexits = require('regexits')

// To find if a string matches a pattern.
regexits.match(string, pattern);

// To remove a certain type from a string.
regexits.removeFromString(string, pattern);

// To get parameters from url.
regexits.getURLParameters(url);

What Regex matching is available

DateSlashes , Time24hr , Date
ISO8601DT , HTMLtag , HEXColor
URLSlug , SrcImgTag , URL
Email, Password , PosInt
NegInt, Integer , PosNum
NegNum, Num ,PhoneNum
NewLine , CSSComment , USCAZip
SSN , EMAIL, IPV4
IPV6 , IPV4ORV6 , VISA
MASTERCARD , AMEX ,DINERS
DISCOVER, JCB , POBOX
SHA256 , MD5 , MAINNET
TESTNET , GITHUB

Author

👤 James Perkins

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 James Perkins.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator