Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

YAPE-Regex-Explain-1.01 released!

by japhy (Canon)
on Feb 06, 2001 at 11:44 UTC ( [id://56633]=CUFP: print w/replies, xml ) Need Help??

The module will be available on CPAN shortly. It can also be downloaded from http://www.pobox.com/~japhy/YAPE/.

Here is a sample use (sorry about the horrible wrapping):
#!/usr/bin/perl use YAPE::Regex::Explain; print YAPE::Regex::Explain->new(qr/^\(\d{3}\) \d{3}-\d{4}$/)->explai +n; __END__ The regular expression: (?-imsx:^\(\d{3}\) \d{3}-\d{4}$) matches as follows: NODE EXPLANATION ==== =========== (?-imsx: group, but do not capture (case-sensitive) (with ^ and $ matching normally) (with . not matching \n) (matching whitespace and # normally): ^ the beginning of the string \( '(' \d{3} digits (0-9) (3 times) \) ')' ' ' \d{3} digits (0-9) (3 times) - '-' \d{4} digits (0-9) (4 times) $ an optional \n followed by the end of the string )


japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: YAPE-Regex-Explain-1.01 released!
by japhy (Canon) on Feb 06, 2001 at 21:01 UTC
    YAPE-Regex-1.02 is being released. There is a bug in Perl 5.6.0 that causes qr// objects to not behave properly on the LEFT-hand side of a =~.

    japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://56633]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found