evandroeisinger / regex.js

Collection of the most used regular expressions in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

regex.js

Collection of the most used regular expressions in JavaScript.

Build Status

npm install regex.js --save

basic usage

var regex = require('regex');

regex actions list

email:

regex.email.validate(source)

regex.email.replace(source, value)

regex.email.search(source)

time:

regex.time.validate(source)

regex.time.replace(source, value)

regex.time.search(source)

ipv4:

regex.ipv4.validate(source)

regex.ipv4.replace(source, value)

regex.ipv4.search(source)


contribute

Everyone can contribute! Every contribution will be welcomed!

Fork it -> Branch it -> Test it -> Push it -> Pull Request it

About

Collection of the most used regular expressions in JavaScript


Languages

Language:JavaScript 97.6%Language:Makefile 2.4%