1.4.0 • Published 4 years ago

regexpool v1.4.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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

NameUsed TypeReturn Options
isEmailisEmail('example@domain.com')true, false
onlyLettersonlyLetters('example')true, false
onlyNumbersonlyNumbers('123')true, false
isDateisDate('31/05/2020', 'DD/MM/YYYY'), isDate('2020/6/1', 'YYYY/MM/DD')true, false
isDomainisDomain('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

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago