I'm trying to replace the string say <a href="http://www.mysite.gr"> with <a href=http://www.mysite.gr target="_blank"> with no luck
I use the code:
ereg_replace("^<a href=\"([:alnum:])\">$", "<a href=\"\\1\" target=\"_blank\">", $string)
Since it looks like you're changing all of the links, how about a simple str_replace() replacing '<a' with '<a target="_blank"' ??
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals - www.phparch.com
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php