stringlist-regexp

1.0.2 • Public • Published

###stringlist-regexp### converts a list of strings to a nested regexp.

function( strings, [ matchStart: true , matchEnd: true ])

example: `stringListRegExp(['foo','bar','baz']); //yields (^foo$|b(ar$|az$)) stringListRegExp(['foo','foobar','bar','baz'], true, false); //yields (^(foo(bar)?|b(ar|az)))

Build Status

Readme

Keywords

Package Sidebar

Install

npm i stringlist-regexp

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • w0ps