replacing a url
Posted: Fri Mar 30, 2012 1:58 am
hi experts,
I need to replace every url in a text string with my url.
any of the three below patterns
************
http://www.example.com/
http://example.com/
http://www.example.com/
**************
in the string should be replaced by
$replaceby="<a href='eee.com'>loop</a>";
the $pattern will be an array with 3 above mentioned patterns.
I need to replace every url in a text string with my url.
any of the three below patterns
************
http://www.example.com/
http://example.com/
http://www.example.com/
**************
in the string should be replaced by
$replaceby="<a href='eee.com'>loop</a>";
the $pattern will be an array with 3 above mentioned patterns.