Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/perkinsjr/regexits

regexits is a lightweight javascript Regex solution
https://github.com/perkinsjr/regexits

credit-card md5 pattern-matching regex regular-expression regular-expressions string-manipulation

Last synced: 3 months ago
JSON representation

regexits is a lightweight javascript Regex solution

Awesome Lists containing this project

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](https://github.com/perkinsjr/regexits#readme)

## Install

```sh
npm install
```

## Run tests

```sh
npm run test
```
## How to use

```sh
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
```sh
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**

* Twitter: [@james_r_perkins](https://twitter.com/james_r_perkins)
* Github: [@perkinsjr](https://github.com/perkinsjr)
* Personal Site: [jamesperkins.io](https://jamesperkins.io)
## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/perkinsjr/regexits/issues).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2019 [James Perkins](https://github.com/perkinsjr).

This project is [MIT](https://github.com/perkinsjr/regexits/blob/master/LICENSE) licensed.

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_