Napoleonic Political Magnificence

    regexfn

    1.0.5 • Public • Published

    Regular Expression Functions

    Functions available for Common RegEx Validations

    Email Validation

    const regex = require('regexfn');
    console.log(regex.isEmail("jeyaprakash120690@gmail.com"));
    

    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"));
    

    Install

    npm i regexfn

    DownloadsWeekly Downloads

    9

    Version

    1.0.5

    License

    ISC

    Unpacked Size

    3.43 kB

    Total Files

    3

    Last publish

    Collaborators

    • jeyaprakash120690