Regex.getCaptureCount

int getCaptureCount() nothrow

Returns the number of capturing subpatterns in the pattern.

Returns

the number of capturing subpatterns