How do I remove the carriage return character (\\r) and the new line character(\\n) from the end of a string?
(\\r)
(\\n)
string k = "This is my\r\nugly string. I want\r\nto change this. Please \r\n help!"; k = System.Text.RegularExpressions.Regex.Replace(k, @"\r\n+", " ");