count_capture_groups

0th

Percentile

Count capture groups

Count the number of capture groups in a regular expression.

Keywords
internal
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

Aliases
  • count_capture_groups
Documentation reproduced from package metacoder, version 0.1.2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.