c#去除字符串中的空格,回车,换行符,制表符

时间:2017-11-01 13:06:02   收藏:0   阅读:667


string l_strResult =  str.Replace("\n", "").Replace(" ","").Replace("\t","").Replace("\r","");

 




原文:http://www.cnblogs.com/wangfuyou/p/7765777.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!