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.


public delegate string MatchEvaluator (Match match)


Documentation for this section has not yet been entered.


Documentation for this section has not yet been entered.


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.


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