Mega Code Archive

 
Categories / Php / Strings
 

Ereg_replace php

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