CLI interface for regexgen. It Generates regular expressions that match a set of strings.
$ npm install regexgen-cli --global
$ regexgen --help
Generates regular expressions that match a set of strings.
Usage
$ regexgen [-gimuy] string1 string2 string3...
Examples
$ regexgen foobar foobaz foozap fooza
$ jq '.keywords' package.json | regexgen
- randexp.js – Generate a random string that matches a given RegExp.
MIT © Kiko Beats.