npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

build-regex-group

0.1.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:6
$ npm install build-regex-group
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

License

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


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