我想使用 VB.net 删除多余的空格
ex.
"The Quick Brown Fox"
我要输出
谢谢, 英奇卡
您可以使用一个简单的正则表达式来实现:
Dim cleaned As String = Regex.Replace(input, "\s{2,}", " ")