Simple command-line utility for generating strings from regular expression patterns. Uses goregen.
go get github.com/zach-klippenstein/regen
Regen takes a regular expression as an argument, and prints the generated strings to standard out.
regen [args] pattern
where pattern
is a regular expression. Run with -h
for more information on arguments.
For example,
regen '[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}'
will generate a UUID (e.g. bc8c3f7d-1176-ae94-492a-2dab8fc06640
).