> how to chang [url=%link%]%descr%[/url] in <a href=%link%>%descr%</a>
$new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","<a href=$1>$2</a>",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php