0.1.0 • Published 10 years ago

build-regex-group v0.1.0

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

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.