Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Count capturing parentheses in a compiled regexp

by japhy (Canon)
on May 02, 2004 at 16:03 UTC ( #349830=note: print w/ replies, xml ) Need Help??


in reply to Count capturing parentheses in a compiled regexp

Once I get Regexp::Parser working (it's the update to YAPE::Regex), you'll be able to do this via:

use Regexp::Parser; # pushes itself to @Regexp::ISA print qr/.../->nparens;
_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;


Comment on Re: Count capturing parentheses in a compiled regexp
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://349830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-12-20 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls