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;
|
---|
In Section
Cool Uses for Perl