Nomnom Pumpernickle Muffins
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    concat-regexppublic

    concat-regexp

    concat-regexp is a function that takes a series of regular expressions (as String and/or RegExp objects) and returns them in concatenated form.

    Build status

    Browser support

    Install

    $ npm install concat-regexp

    Example

    var concat = require('concat-regexp')
     
    var username = 'alice'
    concat(/^\/users\//, username, /\/?/, RegExp('$', 'i'))
    // => /^\/users\/alice\/?$/i 

    License

    MIT

    install

    npm i concat-regexp

    Downloadslast 7 days

    169

    version

    0.0.6

    license

    MIT

    homepage

    github.com

    last publish

    collaborators

    • avatar