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 [EMAIL PROTECTED]</p> In this case, I want "[EMAIL PROTECTED]" 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 [EMAIL PROTECTED], 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 [EMAIL PROTECTED] 831-459-5354 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php