string str = " dd d d "; str = str.Trim(); string s = Regex.Replace(str, " {2,}", " "); 即:s 相关文章: 2022-12-23 2022-12-23 2022-12-23 2022-03-10 2022-12-23 2022-12-23 2022-12-23