Skip to content

Match

Definition

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

One match of a pattern in a text, with what each of its groups captured.

public sealed class Match : Group

Inheritance

Object → Group → Match

Properties

Property Type Description
Empty static Match Gets the match that is no match: Success is false, and every group is empty.
Groups GroupCollection Gets the groups of the match: the whole match as group 0, then each capturing group.

Methods

Method Description
NextMatch() The next match in the input after this one, as ECMA-262 continues a global search: from the end of this match, or one character on when this match is empty....
Result(string) Expands a replacement for this match as ECMA-262's GetSubstitution does: $$, $&, $``, $', $n, \(nn` and `\)`. Anything else is left as it is.

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