Group
Definition
Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: Group.cs
What one capturing group of a match captured.
public class Group : Capture
Inheritance
Properties
| Property | Type | Description |
|---|---|---|
| Captures | CaptureCollection |
Gets the captures of the group: one, when the group took part, and none otherwise. ECMA-262 keeps only the last iteration's capture of a group under a quantifier, so there is never more than one. |
| Name | string |
Gets the name of the group, or its number as text when it has no name. |
| Success | bool |
Gets a value indicating whether the group took part in the match. ECMA-262 does not tell an empty capture from a group that did not take part by the text alone; this does. |
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