Generating all matches of a regex
jarble opened this issue · comments
jarble commented
Is it possible to generate a list of all matches (instead of just one match) of a regular expression using randexp.js?
For example, this regex: /(red|gray) (wolf|fox)/
would have these possible matches:
["red wolf","red fox","gray wolf","gray fox"]
fent commented