assuming its html text why not use the IE5 parsing engine and manipulate the DOM for the text in question. That way you have direct access to each "A" tag and can change whatever you want and save the result.