regex class : GroupCount(string) method

This method has been abolished in Rtype.Regex.dll Ver 1.0.0.1.

Description

Gets a number of groups.

Syntax

regexInstance.GroupCount(string source)

Arguments

ClassNameDescription
stringsourceA string which is searched.

Return value

ClassDescription
intA number of groups.

Sample code

1:

regex pattern = new regex("(a+)");

2:

int count = pattern.GroupCount("aaabbbaaccc"); // the result is 2.

Notes

It's a wrapper of the System.Text.RegularExpressions.Match.Groups.Count property.

This method has been abolished in Rtype.Regex.dll Ver 1.0.0.1.

Links for reference

Copyright © Cooker All rights reserved.