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
Class | Name | Description |
string | source | A string which is searched. |
Return value
Class | Description |
int | A 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.