fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.IO;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string output = @"D:\C_Drive\Desktop\z3-str\Z3-str.py";
  9. output = output.Replace(@"\", "/");
  10. output = Regex.Replace(output, @"(\w):/([^\\]*)", "/cygdrive/$1/$2");
  11. Console.WriteLine(output);
  12. }
  13. }
Success #stdin #stdout 0.12s 24704KB
stdin
Standard input is empty
stdout
/cygdrive/D/C_Drive/Desktop/z3-str/Z3-str.py