eregi sentence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux