string test = "aa bb cc dd";string result = System.Text.RegularExpressions.Regex.Replace(test, @" +", " "); MessageBox.Show(result); 相关文章: