正则表达式

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

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

原文地址:https://www.cnblogs.com/wangweiabcd/p/4212253.html