c#删除转义字符的方法,删除\0后所有字符串(菜鸟级别)
时间:2015-12-21 16:05:20
收藏:0
阅读:1026
string str = "78738\01212";
string str_2= Regex.Unescape(str);
int index = str_2.IndexOf("\0");
str_2 = str_2.Remove(index);
原文:http://www.cnblogs.com/musexiaoluo/p/5063578.html
评论(0)