TA贡献1825条经验 获得超4个赞
RegexOptions options = RegexOptions.None;Regex regex = new Regex("[ ]{2,}", options); tempo = regex.Replace(tempo, " ");
TA贡献1804条经验 获得超7个赞
string xyz = "1 2 3 4 5";xyz = string.Join( " ", xyz.Split( new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries ));
举报