fork(2) 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 = Regex.Replace(output.Replace("\\", "/"), @"(\w):/(.*)", "/cygdrive/$1/$2");
  10. Console.WriteLine(output);
  11. }
  12. }
Success #stdin #stdout 0.12s 24752KB
stdin
Standard input is empty
stdout
/cygdrive/D/C_Drive/Desktop/z3-str/Z3-str.py