A collection of Javascript regular expressions

npm install regular
37 downloads in the last day
73 downloads in the last week
835 downloads in the last month


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


npm install regular --save


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

var regular = require('regular');

console.log('')) // outputs true

Include Expressions

  • email
  • url
  • domain
  • slug
  • ip address
  • credit cards (visa, mastercard, amex, discover)
  • US social security numbers
  • alpha numerics
  • number
  • basicAuth
  • html (is this html?)
  • (More to come. Submit a pull request!)


npm test
npm loves you