Nathan, Thanks for your help on this. I actually need to do this a different way I think though. The problem is that I'm not just replacing a text entity with a link entity. For example, consider this paragraph: <p>For information, please contact tjg@xxxxxxxxxxxxx</p> In this case, I want "tjg@xxxxxxxxxxxx" to be a link, but not the rest of the paragraph. That means that the <p> entity has to be split into three separate entities - one DOMText for "For information, please contact ", one DOMEntity node for tjg@xxxxxxxxxxxx, and one DOMText node for ".". This seems doable with the DOM modle, but complicated. I'm thinking regular expressions might be the way to go again. :\ Tim Gustafson SOE Webmaster UC Santa Cruz tjg@xxxxxxxxxxxx 831-459-5354 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php