regular
A collection of Javascript regular expressions
Last updated 13 years ago by scottcorgan .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install regular 
SYNC missed versions from official npm registry.

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
  • domain
  • slug
  • ip address
  • credit cards (visa, mastercard, amex, discover)
  • alpha numerics
  • US social security numbers
  • (More to come. Submit a pull request!)

Test

npm test

Current Tags

  • 0.1.6                                ...           latest (13 years ago)

6 Versions

  • 0.1.6                                ...           13 years ago
  • 0.1.5                                ...           13 years ago
  • 0.1.4                                ...           13 years ago
  • 0.1.3                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 6
This Month 13
Last Day 0
Last Week 7
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE