in reply to Re: Explained: Trying to count the captures in a compiled regular expressionin thread Trying to count the captures in a compiled regular expression
/$regex??/; print "There were $#+ groupings\n"; [download]