using System.Text.RegularExpressions;
string inputstr = "  aa bb  cc     dd   ";
string outputstr = Regex.Replace( inputstr.Trim() , "  *" , " ");

相关文章:

  • 2021-05-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-09-15
相关资源
相似解决方案