Registry / testing / regex-generate

regex-generate

JSON →
library0.2.3rscratesunverified

Use regular expressions to generate random text that matches the pattern.

# Cargo.toml [dependencies] regex_generate = "0.2.3"
INSTALL
IMPORT
SIG · REGEX-GENERATE
R
regex-generate
testingrustv0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RegexGenerator
✓ use regex_generate::RegexGenerator;

Generates a random string matching the regex pattern.

use regex_generate::RegexGenerator; fn main() { let gen = RegexGenerator::new(r"[a-z]{3}").unwrap(); let result = gen.generate().unwrap(); println!("{}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
regex-generate — cargo add regex-generate · libregistry