Thanks for the code! Your code works great with long strings, but I failed to mention (sorry!) in my original post that I'm using this function with small word sized chunks of text. In this scenario the overhead of the regex COM component is too great.