use Regexp::Parser; # pushes itself to @Regexp::ISA print qr/.../->nparens;
In reply to Re: Count capturing parentheses in a compiled regexp
by japhy
in thread Count capturing parentheses in a compiled regexp
by BooK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |