build-regex-group
v0.1.0
Published
Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.
Downloads
9
Readme
build-regex-group
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.