Regex.GetGroupNames Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an array of capturing group names for the regular expression.
public:
cli::array <System::String ^> ^ GetGroupNames();
public string[] GetGroupNames();
member this.GetGroupNames : unit -> string[]
Public Function GetGroupNames () As String()
Returns
A string array of group names.
Remarks
The collection of group names contains the set of strings used to name capturing groups in the expression. Even if capturing groups are not explicitly named, they are automatically assigned numerical names ("0", "1", "2", and so on). Group "0" always designates the entire match.