fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string txt = "e1e2e3";
  9. Regex digits = new Regex(@"\d");
  10. Random rand = new Random();
  11. txt = digits.Replace(txt, match => rand.Next(0, 9).ToString());
  12. Console.WriteLine(txt);
  13. }
  14. }
Success #stdin #stdout 0.06s 27496KB
stdin
Standard input is empty
stdout
e0e8e3