博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
string str = Regex.Replace(input, @"( )\1+", "$1", RegexOptions.None);