/Dart 2

groupCount property

int groupCount

Returns the number of captured groups in the match.

Some patterns may capture parts of the input that was used to compute the full match. This is the number of captured groups, which is also the maximal allowed argument to the group method.


int get groupCount;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.