regexfn
v1.0.5
Published
It has buildin regex functions
Downloads
8
Maintainers
Readme
Regular Expression Functions
Functions available for Common RegEx Validations
##Email Validation
const regex = require('regexfn');
console.log(regex.isEmail("[email protected]"));
##Letter Validation
const regex = require('regexfn');
console.log(regex.isLetterOnly("Tree"));
##Number Validation
const regex = require('regexfn');
console.log(regex.isNumberOnly("1234"));
##Phone Validation
const regex = require('regexfn');
console.log(regex.isPhoneNumber("9840348428"));
##GUID Validation
const regex = require('regexfn');
console.log(regex.isGUID("5F72B1E0-BC6D-4BDE-ABD4-3A78AFCADEFC"));
##isAmount Validation
const regex = require('regexfn');
console.log(regex.isAmount("11.05"));
##US Zip Validation
const regex = require('regexfn');
console.log(regex.is_usZipCode("03201-2150"));
console.log(regex.is_usZipCode("03201"));
##SSN Validation
const regex = require('regexfn');
console.log(regex.is_socialSecurity_Number("019-90-5680"));
console.log(regex.is_socialSecurity_Number("K8V-3Y1"));