@ysoheil/regex-utils
v1.0.0
Published
A toolkit for common regex expressions.
Downloads
7
Maintainers
Readme
regex-utils
Regex expressions for common use cases.
Install
$ npm install regex-utils
Usage
const regexUtils = require('regex-utils')
regexUtils.emails('a random blob of text with an [email protected] in it...')
// => ["[email protected]"]
regexUtils.emailValid('[email protected]')
// => true
regexUtils.emailValid('am I an [email protected]?')
// => false
regexUtils.nameValid('Soheil Yasrebi')
// => true