fork download
  1. using System;
  2. using System.Linq;
  3. using System.IO;
  4. using System.Text.RegularExpressions;
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string text = "The the quick brown fox 23jumps o65ver th66e lazy dog.";
  10. var VAL = 4;
  11. Console.WriteLine(Regex.Replace(text, @"\d+", m => $"{VAL * int.Parse(m.Value)}"));
  12. }
  13.  
  14. }
  15.  
  16.  
Success #stdin #stdout 0.03s 134592KB
stdin
Standard input is empty
stdout
The the quick brown fox 92jumps o260ver th264e lazy dog.