Skip to content

Regex.GroupNumberFromName Method

Definition

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

GroupNumberFromName(string)

The number of the first group of a name, or -1 when the pattern has no group of that name.

public int GroupNumberFromName(string name)

Parameters

Name Type Description
name string The name.

Returns

int

The number.

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