It seems simple enough, right? Well, I don\'t know.
Here\'s the code I\'m trying:
input = Regex.Replace(input, \"\\\\\", \"\\\\\\\\\\\\\"); >
input = Regex.Replace(input, \"\\\\\", \"\\\\\\\\\\\\\");
var result = Regex.Replace(@"afd\tas\asfd\", @"\\", @"\\");
The first parameter is string \\ which is \ in regex. The second parameter is not processed by regex, so it will put it as is, when replacing.