Skip to content

Regex.GroupNameFromNumber Method

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: Regex.Matching.cs

GroupNameFromNumber(int)

The name of a group, or its number as text when it has none.

public string GroupNameFromNumber(int number)

Parameters

Name Type Description
number int The number, from 0 to GroupCount.

Returns

string

The name.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue