Mega Code Archive

 
Categories / Php / Strings
 

Ereg_replace-2

<?php $url = "rntsoft (http://www.rntsoft.com)"; $url = ereg_replace("http://([a-zA-Z0-9./-]+)([a-zA-Z/]+)", "<a href=\"\\0\">\\0</a>", $url); print $url;  ?>