I've got some horrible text that I'm cleaning up using several c# regular expressions. One issue that has me stumped is there are a number of '\r\n' strings in the text, the actual characters not the line breaks.
I've tried:
content = Regex.Replace(content, "\\r\\n", "");
and:
content = Regex.Replace(content, "\r\n", "");
but neither of them work. In the end I had to use:
content = content.Replace("\\r\\n", "\r\n");
to get the project finished, but not being able to do it in a regex annoys me.