本文共 125 字,大约阅读时间需要 1 分钟。
Regex re=new Regex(@"[/s]{2,}",RegexOptions.Compiled);
strSearch=re.Replace(strSearch.TrimEnd()," ");
@"[/s]{2,}"表示两个或两个以上的空格
转载地址:http://jyje.baihongyu.com/