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