Home Cooker Classes Others Rice CookerGX
Classes  >  regex  >  Groups(string)
regex class : Groups(string) method

Description

Gets a list of the string of all groups which was searched.

Syntax

regexInstance.Groups(string source)

Arguments

ClassNameDescription
stringsourceA string which is searched.

Return value

ClassDescription
list{string}A list of the string of all groups which was searched.

Sample code

//anyRegex is an any instance of regex type.

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

list{string} result = anyRegex.Groups("aaabbbaaccc");

Notes

None

Links for reference

Copyright © Rice All rights reserved.