eregi sentence

From: Date: Sun, 30 Nov 2003 07:29:19 +0000
Subject: eregi sentence
Groups: php.db 
Request: Send a blank email to php-db+get-31815@lists.php.net to get a copy of this message
Hello list. Can somebody tell me what is wrong with the following? $body=eregi_replace("<a href=\"(.+)\"([^>]*)>(.+)</a>", "<a href=\"\\1\" target=\"_blank\" class=\"down_txt\"><strong>\\3</strong></a>", $body); where $body is comming from a MySQL BLOB with text. All I want to do is to "replace" the "<a href="blabla" target="blahbla"> or "<a href="blabla"> whith <a href="blahblah" target="_blank" class="down_txt"> but it doesn't seems to work right. For example, in the same text replace the <A href="http://www.eclipse.org/"> but not the <a href="http://developers.sun.com/prodtech/javatools/community/"> Please help Thank you

« previous php.db (#31815) next »