正则表达式

用正则表达式去除重复的空白符

string strs2  = Regex.Replace(strs, "[\\s]{2,}", " ");

posted @ 2015-01-09 00:10  蜂蜜柚子  阅读(129)  评论(0)    收藏  举报