ASP.NET C# 去掉字符串中间空格方法

str = System.Text.RegularExpressions.Regex.Replace(str, @"\s", "");
原文地址:https://www.cnblogs.com/cosiray/p/1558234.html