O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

MatchEvaluator

Synopsis

This delegate can be called when a match is found during a replace operation. Several versions of the overloaded Regex.Replace() method take a MatchEvaluator as a parameter. Regex.Replace() walks through a search string looking for matches to a given expression and replaces each match using a specified replacement string. The MatchEvaluator delegate can be called on each match, getting passed the match result as a Match object.

public delegate string MatchEvaluator(Match match);  

Passed To

Regex.Replace()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required