fork(1) download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var str = " modif-i-ed a-im";
  10. var res = Regex.Replace(str, @"-?\b([a-zA-Z])\b-", "y");
  11. Console.WriteLine(res);
  12. }
  13. }
Success #stdin #stdout 0.13s 24736KB
stdin
Standard input is empty
stdout
 modifyed  yim