0.0.3 • Published 3 months ago

@d3v4pp/rex v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

what is @d3v4pp/rex

d3v4pp/rex is an npm package that contains a set of regular expressions, and that's it.

installation & Usage

Current version

npm i @d3v4pp/rex --save

Next version

npm i git+https://cvs.d3v4pp.fr/D3V4PP/rex.git --save

How to use

const { email, alpha, num } = require("@d3v4pp/rex");

email.test("email@example.com") //will return true
alpha.test("2233er") //will return false
num.test("1234") //will return true

Included Regular expressions

RegexDescription
numnumeric only
alphaonly chars no numbers no special chars
alphanumchars alphabet and numbers
emaila valid email
urla valid url
ipAddressip addr v4
passwordcomplex password with special char, numeric uppercase and lowwercase
phonefrench phone number
codePostfrench zip code
timetime hh:mm:ss
pricefloat with a precision of two
datefrench date dd/mm/YYYY
tvafrench TVA, Set of values 5.5, 10 and 20
prixfloat with a precision of two
dateFr date jj/mm/yyyy
passwordcomplex password
motDePassecomplex password
matriculeeuropean immatriculation
tvaIntercomFrench TVA intra communautaire
ibanfrench IBAN
0.0.3

3 months ago

0.0.2

1 year ago

0.0.1

2 years ago