将一个或多个空格替换成为一个空格
摘要:
string test = "aa bb cc dd"; string result = System.Text.RegularExpressions.Regex.Replace(test, @" +", " "); MessageBox.Show(result); 阅读全文
posted @ 2008-11-04 17:21 优雅小猪 阅读(1874) 评论(0) 推荐(0)
posted @ 2008-11-04 17:21 优雅小猪 阅读(1874) 评论(0) 推荐(0)