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, \"\\\\\", \"\\\\\\\\\\\\\");
If you intend to use the input in a regex pattern later, it can be a good idea to use Regex.Encode.
input = Regex.Escape(input);