It seems simple enough, right? Well, I don\'t know.
Here\'s the code I\'m trying:
input = Regex.Replace(input, \"\\\\\", \"\\\\\\\\\\\\\");
>
If you want to replace one backslash with two, it might be clearer to eliminate one level of escaping in the regular expression by using @"..." as the format for your string literals, also known as a verbatim string. It is then easier to see that
string output = Regex.Replace(input, @"\\", @"\\");
is a replacement from \ to \\.