metacoder (version 0.3.7)

count_capture_groups: Count capture groups

Description

Count the number of capture groups in a regular expression.

Usage

count_capture_groups(regex)

Value

numeric of length 1

Arguments

regex

(character of length 1)