I have a string as
"This is a small \t\t world"
Assume that the string has 2 tabs in between the words "small" and "world". How can I trim one of the tab spaces so that I get:
"This is a small \t world"
The words "small" and "world" can appear only once in the sentence. Basically given two specific words, I want to trim the extra tab between them
smallandworldbesides one space character on each side and any number of tabs?