System.Text.RegularExpressions.MatchEvaluator Delegate

Represents the method that is called each time a regular expression match is found during a erload:System.Text.RegularExpressions.Regex.Replace method operation.

Syntax

public delegate string MatchEvaluator (Match match)

Parameters

match
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

You can use a System.Text.RegularExpressions.MatchEvaluator delegate method to perform a custom verification or manipulation operation for each match found by a replacement method such as Regex.Replace(string, MatchEvaluator). For each matched string, the erload:System.Text.RegularExpressions.Regex.Replace method calls the System.Text.RegularExpressions.MatchEvaluator delegate method with a System.Text.RegularExpressions.Match object that represents the match. The delegate method performs whatever processing you prefer and returns a string that the erload:System.Text.RegularExpressions.Regex.Replace method substitutes for the matched string.

Requirements

Namespace: System.Text.RegularExpressions
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0