fork download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4. using System.Linq;
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9.  
  10. Console.WriteLine(Regex.Replace("3 sql stmts here 10009M some other 3 sql stmts here",
  11. @"(\d+)M\b", "$1"));
  12. }
  13.  
  14.  
  15. }
  16.  
  17.  
Success #stdin #stdout 0.13s 24352KB
stdin
Standard input is empty
stdout
3 sql stmts here 10009 some other 3 sql stmts here