// Limited conversion: It doesn't cover the case when the stuff in front of the URL is not a word. For example:\r
// <p>http://google.ca</p>\r
// "http://google.ca" \r
- $text = preg_replace('/(^|[\n ])([\w]*?[\"]*)((?<!(\[media\]))http(s)?:\/\/[\w]+[^ \,\"\n\r\t\)<]*)/is', \r
+ $text = preg_replace('/(^|[\n ])([\w]*?)((?<!(\[media\]))http(s)?:\/\/[\w]+[^ \,\"\n\r\t\)<]*)/is', \r
'$1$2<a href="$3">$3</a>', $text);\r
\r
// convert email address to clickable URL that pops up "send email" interface with the address filled in\r