in reply to Generate random strings from regular expression
(*) Via this old thread I found Regexp::Genex and there is also String::Random. Neither worked for my use case.How about Mock::Data::Regex?
Or is the real use case more complicated?perl -MMock::Data::Regex -E ' say Mock::Data::Regex->new( qr/^[a-c]{2}[-,.]\d{3}-[A-Z]{2}$/a )->generate;' bb-157-JA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generate random strings from regular expression
by bliako (Abbot) on Jul 08, 2024 at 08:53 UTC | |
by NERDVANA (Priest) on Jul 08, 2024 at 09:10 UTC |