If I do this:
Regex.Replace("unlocktheinbox.com", "[t]", "\\$&");
My result is:
"unlock\\theinbox.com"
I'm expecting it to be
"unlock\theinbox.com"
I'm trying to replace "t" with "\t" using regex.replace. I made this example very basic to explain what I'm trying to accomplish.
Regex.Replace("unlocktheinbox.com", "[t]", @"\");"unlock\\theinbox.com", \\ means it's one backslash, but in string it has to be escaped. If youConsole.WriteLineout the resulting string, it shows up correctly.