Skip to content

Match.Result Method

Definition

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

Result(string)

Expands a replacement for this match as ECMA-262's GetSubstitution does: $$, $&, $``, $', $n, \(nn` and `\)`. Anything else is left as it is.

public string Result(string replacement)

Parameters

Name Type Description
replacement string The replacement.

Returns

string

The expansion.

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