Regex.getCaptureCount

Returns the number of capturing subpatterns in the pattern. Since 2.14

class Regex
int
getCaptureCount
()

Return Value

Type: int

the number of capturing subpatterns

Meta