@ysoheil/regex-utils

1.0.0 • Public • Published

regex-utils

Regex expressions for common use cases.

Build Status

Install

$ npm install regex-utils

Usage

const regexUtils = require('regex-utils')

regexUtils.emails('a random blob of text with an email@example.com in it...')
// => ["email@example.com"]

regexUtils.emailValid('email@example.com')
// => true

regexUtils.emailValid('am I an email@example.com?')
// => false

regexUtils.nameValid('Soheil Yasrebi')
// => true

Package Sidebar

Install

npm i @ysoheil/regex-utils

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.19 kB

Total Files

5

Last publish

Collaborators

  • ysoheil