Page 1 of 1

hyperlinks

Posted: Tue Mar 15, 2005 3:55 am
by Addos
Is there a little PHP script that searches for hyperlinks that are placed in the middle of a text? For example if I type http://www.me.com in an email or even in a Word doc it automatically recognises this as a link. How can I achieve this when I place something similar in my SQL database that when returned to the browser will automatically change it to a link?
Thanks for any help
Brian

Posted: Tue Mar 15, 2005 4:02 am
by n00b Saibot
Regexps will be perfect for this

Search This Link :arrow: http://www.regexlib.com/Search.aspx?k=url
posted a few posts before by Ambush Commander Here viewtopic.php?t=31560&highlight=url+regexp

Posted: Tue Mar 15, 2005 4:06 am
by Addos
Thanks very much for this.
Regards
Brian :wink: