0.1.6 • Published 10 years ago

regular v0.1.6

Weekly downloads
674
License
-
Repository
github
Last release
10 years ago

regular

A collection of Javascript regular expressions. One npm module to easily install and have access to the most commonly used regeular expressions.

Install

npm install regular --save

Usage

This module is simply a collection of regular expression. Use them as you would any other expression.

var regular = require('regular');

console.log(regular.email.test('someemail@gmail.com')) // outputs true

Include Expressions

  • email
  • url
  • ip address
  • credit cards (visa, mastercard, amex, discover)
  • alpha numerics
  • US social security numbers
  • (More to come. Submit a pull request!)

Test

npm test