Regex.group_count
group_count
Group: Metadata
Documentation
Return the number of groups in the underlying RegexObject. Note, the count includes group 0 (the whole match) as well.
Group: Metadata
Return the number of groups in the underlying RegexObject. Note, the count includes group 0 (the whole match) as well.