regexpool
v1.4.0
Published
A library of frequently used regex samples
Downloads
6
Maintainers
Readme
regexPool
A library of frequently used regex samples.
Installation
npm i regexpool
Usage
It is implemented from within the regexPool file. For example:
import { forExample } from 'regexpool'
You must send parameters to the function you called last. The value true / false will return you:
const regexPoolVariable = forExample('parameter');
Regex Properties
| Name | Used Type | Return Options | | :-----: | :-: | :-: | | isEmail | isEmail('[email protected]') | true, false | | onlyLetters | onlyLetters('example') | true, false | | onlyNumbers | onlyNumbers('123') | true, false | | isDate | isDate('31/05/2020', 'DD/MM/YYYY'), isDate('2020/6/1', 'YYYY/MM/DD') | true, false | | isDomain | isDomain('www.sample.com', 'wwwPath'), isDomain('sub.sample.com.tr', 'wwwOptionally') | true, false |
License
MIT
Changelog
v1.0.0
Initial commit and Adding isEmail control
v1.1.0
Adding onlyLetters control
v1.2.0
Adding onlyNumbers control
v1.3.0
Adding isDate control
v1.4.0
Adding isDomain control