Sure, you can do that with a regular expression. But do you want it between WORDS or CHARACTERS? Your question asks about words, but your final result implies characters. I'll show you the method for characters: