I have a string in the following format
string s = \"This is a Test String.\\n This is a next line.\\t This is a tab.\\n\'
I want to remo
If speed and low memory usage are important, do something like this:
var sb = new StringBuilder(s.Length); foreach (char i in s) if (i != '\n' && i != '\r' && i != '\t') sb.Append(i); s = sb.ToString();