Trim just white space, without escape characters
c#
Solution
"\tsome text\t\t\t\t".Trim(' ')
Problem
Here is my string: ``` "\tsome text\t\t\t\t" ``` And when I do: ``` "\tsome text\t\t\t\t".Trim() ``` the \t are also deleted. How to avoid this?
c#
"\tsome text\t\t\t\t".Trim(' ')
Here is my string: ``` "\tsome text\t\t\t\t" ``` And when I do: ``` "\tsome text\t\t\t\t".Trim() ``` the \t are also deleted. How to avoid this?