<?php
$input = preg_replace("/(www\.|http:\/\/)([^\s]+)/", '<a href="http://$1$2" target="_blank">$1$2</a>', $input);
?>
PHP On Replace user input with link
by shtruc,
January 08, 2008 22:35
<?php
$input = preg_replace("/(www\.|http:\/\/)([^\s]+)/", '<a href="http://$1$2" target="_blank">$1$2</a>', $input);
?>
If i understand correctly, ...