07-24-2023, 12:04 PM
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 remove all the occurrences of `\n` and `\r` from the string above.
I have tried `string s = s.Trim(new char[] {'\n', '\r'}); ` but it didn't help.
string s = "This is a Test String.\n This is a next line.\t This is a tab.\n'
I want to remove all the occurrences of `\n` and `\r` from the string above.
I have tried `string s = s.Trim(new char[] {'\n', '\r'}); ` but it didn't help.