count_capture_groups: Count capture groups

View source: R/old_taxa--taxmap--parsers.R

count_capture_groupsR Documentation

Count capture groups

Description

Count the number of capture groups in a regular expression.

Usage

count_capture_groups(regex)

Arguments

regex

(character of length 1)

Value

numeric of length 1

Source

http://stackoverflow.com/questions/16046620/regex-to-count-the-number-of-capturing-groups-in-a-regex


metacoder documentation built on April 4, 2023, 9:08 a.m.