match-any v0.0.1
Search a string for substrings matching any number of provided RegExp
objects.
const matchAny = // Returns a sparse arrayconst matches = matches /* Console output: * * index = 0 * string = 'a' * regex = /[a-z]/g * * index = 1 * string = '1' * regex = /[0-9]/g * * index = 3 * string = 'b' * regex = /[a-z]/g * * index = 4 * string = '2' * regex = /[0-9]/g */