- ereg_replace

From: Date: Fri, 14 Nov 2003 11:13:50 +0000
Subject: - ereg_replace
Groups: php.db 
Request: Send a blank email to php-db+get-31574@lists.php.net to get a copy of this message
Hello list 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) I echo the result but nothing changing. What Im doing wrong? Thanx

« previous php.db (#31574) next »