How can I remove extra white space (i.e. more than one white space character in a row) from text in JavaScript?
E.g
match the start using.
myString = Regex.Replace(myString, @"\s+", " ");
or even:
RegexOptions options = RegexOptions.None; Regex regex = new Regex(@"[ ]{2,}", options); tempo = regex.Replace(tempo, @" ");