#regex #string #regular #expression #generate #syntax

bin+lib rexplode

Generate strings from the given regular expression

2 stable releases

1.0.1 Dec 21, 2021
1.0.0 Dec 18, 2021

#69 in #regular

MIT license

11KB
280 lines

rexplode

Crates.io

Generate strings from the given regular expression.

$ rexplode 'Number [0-6]'
Number 0
Number 1
Number 2
Number 3
Number 4
Number 5
Number 6

Supported syntax

Syntax Example
Character classes [abc] [a-c]
Composites ab a|b
Repetitions a? a{2} a{0,2}
Groups (a) (?:a)

Installation

Download the binary from the release page:

https://github.com/woxtu/rexplode/releases

Or install with Cargo:

$ cargo install rexplode

License

Copyright (c) 2021 woxtu

Licensed under the MIT license.

Dependencies

~2MB
~59K SLoC