开发者

how to isolated string that contain TAB?

开发者 https://www.devze.com 2023-01-06 01:01 出处:网络
i have this string: i[TAB]like[TAB]Stackoverflow and i ne开发者_StackOverflowed to get this: i like Stackoverflow

i have this string:

i[TAB]like[TAB]Stackoverflow

and i ne开发者_StackOverflowed to get this:

i

like

Stackoverflow

how to do it in C# ?

thanks in advance


mystring = mystring.Replace("\t","\r\n\r\n");


If by "isolated" you mean explode that into an array,

return thatString.Split("\t");


str.Split("\t");

will return an array of strings.

0

精彩评论

暂无评论...
验证码 换一张
取 消