I\'m looking for a simple regex find and replace solution were I can just provide a lambda expression for replacing each matches. E.g:
regex.MatchReplace(tex
Regex already has one. For ex,
string input="abc123def"; var output = Regex.Replace(input, @"\d", m=>(m.Value[0]-'0'+ 5).ToString()); Console.WriteLine(output);
OUTPUT: abc678def