It seems the .NET Regex.Replace method automatically replaces all matching occurrences. I could provide a MatchEvaluator delegate that returns the matched string after the
Within a specified input string, replaces a specified maximum number of strings that
match a regular expression pattern with a specified replacement string.