https://github.com/zach-klippenstein/regen
Simple command-line utility for generating strings from regular expression patterns.
https://github.com/zach-klippenstein/regen
Last synced: 20 days ago
JSON representation
Simple command-line utility for generating strings from regular expression patterns.
- Host: GitHub
- URL: https://github.com/zach-klippenstein/regen
- Owner: zach-klippenstein
- License: apache-2.0
- Created: 2014-12-31T16:57:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-31T17:47:43.000Z (over 10 years ago)
- Last Synced: 2025-03-26T21:23:16.534Z (about 1 month ago)
- Language: Go
- Size: 406 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# regen [](https://travis-ci.org/zach-klippenstein/regen)
Simple command-line utility for generating strings from regular expression patterns.
Uses [goregen](https://github.com/zach-klippenstein/goregen).## Installation
```bash
go get github.com/zach-klippenstein/regen
```## Usage
Regen takes a regular expression as an argument, and prints the generated strings to standard out.
```bash
regen [args] pattern
```
where `pattern` is a regular expression. Run with `-h` for more information on arguments.For example,
```bash
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`).