PHP/HTML/Hyperlink
Parse http link from string
<source lang="html4strict">
<?php
$text = "This is a link to http://www.wbex.ru/."; echo ereg_replace("http://([a-zA-Z0-9./-]+)$", "<a href=\"\\0\">\\0</a>", $text);
?>
</source>
<source lang="html4strict">
<?php
$text = "This is a link to http://www.wbex.ru/."; echo ereg_replace("http://([a-zA-Z0-9./-]+)$", "<a href=\"\\0\">\\0</a>", $text);
?>
</source>