Nuanced Pumpkin Mavens

    make-regex

    1.0.0 • Public • Published

    Make Regex

    This module makes regex pattern easily.

    Install

    Install with npm:

    $ npm install --save make-regex
    const RegMaker = require('make-regex');
    
    let regMaker = new RegMaker('\\w+');
    
    regMaker.make();
    
    // It's an invalid regex just return false
    let regMaker2 = new RegMaker('{2}\d');
    
    regMaker2.make(); // It will return false.
    
    // Empty input
    let regMaker3 = new RegMaker('');
    
    regMaker3.make(); // It will return /(?:)/g

    Running tests

    $ node test.js

    License

    Released under the MIT License.

    Install

    npm i make-regex

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    45.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • faramj