fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var str = "Example01.1234312232.txt";
  9. var res = Regex.Replace(str, @"\.\d+", "");
  10. Console.WriteLine("'{0}'", res);
  11. }
  12. }
Success #stdin #stdout 0.07s 34144KB
stdin
Standard input is empty
stdout
'Example01.txt'