I have some large parts of text with URLs in it (but without hyperlinks). I need to add links to all URLs but have no idea about how to do that, so i'm asking for your help in the hope that someone have done it already and can share the code with others or is just a PHP wizard ;)
So how can i detect an URL (like [whatever.com)...] in a text and add hyperlink tags to it so it looks like
< a href=http://www.whatever.com >http://www.whatever.com< /a >
You're looking to do a "regular expression search and replace". There are several threads in this forum that describe this in various ways. Sorry I can't post a link or the code, but do a search and you'll find lots of stuff.