NAME
YAPE::Regex::Explain - explanation of a regular expression
SYNOPSIS
use YAPE::Regex::Explain;
my $exp = YAPE::Regex::Explain->new($REx)->explain;
YAPE
MODULES
The YAPE
hierarchy of modules is an attempt at a unified means of parsing and extracting content. It attempts to maintain a generic interface, to promote simplicity and reusability. The API is powerful, yet simple. The modules do tokenization (which can be intercepted) and build trees, so that extraction of specific nodes is doable.
DESCRIPTION
This module merely sub-classes YAPE::Regex
, and produces a rather verbose explanation of a regex, suitable for demonstration and tutorial purposes.
Methods for YAPE::Regex::Explain
my $p = YAPE::Regex::Explain->new($regex);
Calls
YAPE::Regex
'snew
method (see its docs).my $p = YAPE::Regex::Explain->explain($as_regex);
Returns a string explaining the regex. If you pass an argument (any argument at all) to this method, a valid regex (under
/x
) will be returned.
SUPPORT
Visit YAPE
's web site at http://www.pobox.com/~japhy/YAPE/.
SEE ALSO
The YAPE::Regex
documentation.
AUTHOR
Jeff "japhy" Pinyan
CPAN ID: PINYAN
japhy@pobox.com
http://www.pobox.com/~japhy/