fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string text = "Say.2 Sing\"3 Final5 Note:10 Music99 Sing1";
  9. string ntext = Regex.Replace(text, @"([^\d\s]+)\d+\s*", "$1\n");
  10. Console.WriteLine(ntext);
  11. }
  12. }
Success #stdin #stdout 0.06s 21084KB
stdin
Standard input is empty
stdout
Say.
Sing"
Final
Note:
Music
Sing