Can somebody help me out with this
I want to convert all the urls in my string to hyperlinks, with some help I use this:
$body = preg_replace("~(([url]ftp://[/url])|([url]http://[/url])|(www))[]]*~", "<a href=\"\0\" target=\"_blank\">\0</a>",$body);
But this reg exp does not find the ending of the URL so it includes the text after the url, like:
Here is som text you can click this link <a href="http://www.digi.no more text after the URLf" target="_blank">http://www.digi.no more text after the URL</a>
can anyone help, please
regards Thomas