Thanks again, the code works great on Windows.

However, I just learned that on Mac the code won't run. The following line throws an error:
regX_delete = CreateObject("vbscript.regexp"
Is there any way to do implement this "search & replace" procedure such that it works for both Windows & Mac?