<? $strText = 'this is a test http://www.netartmedia.net asda'; $strText = preg_replace( '/(http|ftp)+(s)?:(//)((w|.)+)(/)?(S+)?/i', '<a href="">4</a>', $strText ); echo $strText; ?>
<< Go back