string myString = "a b c d e";
myString = Regex.Replace(myString, @"\s+", " ");
Dim myString As String myString = "a b c d e" myString = Regex.Replace(myString, "\s+", " ")
Output - "a b c d e" would be : "a b c d e"
string myString = "a b c d e";
myString = Regex.Replace(myString, @"\s+", " ");
Dim myString As String myString = "a b c d e" myString = Regex.Replace(myString, "\s+", " ")
Output - "a b c d e" would be : "a b c d e"