in reply to Re: Explained: Trying to count the captures in a compiled regular expression
in thread Trying to count the captures in a compiled regular expression

or even
/$regex??/; print "There were $#+ groupings\n";

The PerlMonk tr/// Advocate
  • Comment on Re: Re: Explained: Trying to count the captures in a compiled regular expression
  • Download Code