I'm using the code sample below, and what I want to do is replace all multiple spaces with 1 \t.
So
"I am having fun working on Regex"
returns
"I am\thaving fun\tworking\ton\tRegex"
Current code:
RegexOptions options = RegexOptions.None;
Regex regex = new Regex(@"[ ]{2,}", options);
tempo = regex.Replace(tempo, @" ");
Thanks!