|
Friday, 10 December 2010 12:22 |
For replacing matches with different strings. The method 'MethodName' will have Match object as the only paramater. 'MethodName' will be executed for every match in fileContent.
string replacement = Regex.Replace(fileContent, @"pattern", new MatchEvaluator(MethodName));
 Read more: |