fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var input = "---Three dashes a-b-c-d";
  9. string result = Regex.Replace(input, @"\G-", "$0 ");
  10. Console.WriteLine(result);
  11. }
  12. }
  13.  
Success #stdin #stdout 0.06s 27464KB
stdin
Standard input is empty
stdout
- - - Three dashes a-b-c-d