regen

command module
v0.0.0-...-785b5cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

README

regen Build Status

Simple command-line utility for generating strings from regular expression patterns. Uses goregen.

Installation

go get github.com/zach-klippenstein/regen

Usage

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).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL