fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var regex = new Regex("(%20)+");
  9. var output = regex.Replace("The%20%20%20%20%20%20%20%20%20%20Park", "-");
  10. Console.WriteLine(output);
  11. }
  12. }
Success #stdin #stdout 0.02s 30360KB
stdin
Standard input is empty
stdout
The-Park