<pre><?php$data = 'apple {url}www.apple_pies_from_heaven.com{/url} pie';$contents = eregi_replace('\{url\}(.*){/url}', '<a href="\\1">\\1</a>', $data);echo 'contents: '.$contents."\n";?></pre> _________________________________________________________________ i'm making a difference. Make every IM count for the cause of your choice. Join Now. http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://im.live.com/messenger/im/home/?source=wlmailtagline