Turn URLs into links
Posted: Wed Aug 02, 2006 8:33 pm
I have my expression, but how do I convert
into
I had a look everywhere but only found how to unlink URLs which was slightly different.
Code: Select all
http://www.url.comCode: Select all
<a href=http://www.url.com>http://www.url.com</a>Code: Select all
$smessage = preg_replace('#^\w+://(www\.)?\w+\.\w+#','What should I put in here?',$smessage);