build-regex-group

0.1.0 • Public • Published

build-regex-group NPM version

Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.

Install

npm

npm i build-regex-group --save

Usage

var buildRegex = require('build-regex-group');
console.log(buildRegex(['a', 'b', 'c'], 'g'));
//=> /(a|b|c)/g

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on July 06, 2014.

/build-regex-group/

    Package Sidebar

    Install

    npm i build-regex-group

    Weekly Downloads

    0

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • doowb
    • jonschlinkert