Preg Replace Problem

Hi, I'm having a problem changing a text URL into a hyperlink in a given string.
It works O.K, but messes up a little dependeing on the string. E.g. it could be www.example.com. note the .
It worked for most as they didn't have the . in but this particular one is: www.example.com/page.<br />
I'm just a little unsure how to handle it as I can't remove the . in that instance because of .php. .html pages etc.
Here…
Preg Replace Problem

See original post by scottlpool2003

Leave a Reply