NAME
Parse::RandGen::Regexp - Regular expression Condition element.
DESCRIPTION
Regexp is a Condition element that matches the given compiled regular expression. For picking random data, the regular expression is parsed into its component Subrules, Literals, CharClasses, etc.... Therefore, the pick functionality for a regular expression is ultimately the same as the pick functionality of a Rule (including the limitations w/r to greediness - see Rule).
METHODS
new
Creates a new Regexp. The first argument (required) is the regular expression element (e.g. qr/foo(bar|baz)+\d{1,10}/). All other arguments are named pairs.
element
Returns the Regexp element (i.e. the compiled regular expression itself).
SEE ALSO
Parse::RandGen::Condition, Parse::RandGen::Subrule, Parse::RandGen::Literal, Parse::RandGen::CharClass, Parse::RandGen::Rule, Parse::RandGen::Production, and Parse::RandGen
AUTHORS
Jeff Dutton
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 219:
You forgot a '=back' before '=head1'
- Around line 230:
=back without =over