Ok you have given a good example the only problem i still dont understand the forumla your using and whats up with the commands in between

was that a method of creating a loop in the $regsubex for the text or something

Or ??

Yes I know I dont make sense lol this $regxxxxxxxxx commands are mind boggling when your new to them.