Skip to content

Ivokato/stringlist-regexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###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

About

creates a single regexp from a list of strings to search for

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published