Hi, could someone tell me how to convert the url from this: <url>http://blah.com</url> to this: <a href="http://blah.com">http://blah.com</a> ?
Thanks in advance!
Arik 😕
First off I would use eregi or trim functions to get the url out of the string. Then I would just build the hyperlink by concatinating the url and the html tags into one variable. Then just echo the variable that contains the concatinated string.
Vlad G.
thanx for the replay, but i don't know how to use regular expressions, could you give me a link to a good tutorial? or just post the right expression to my question...
thanks in advance Arik :rolleyes:
For tutorial try downloading the compiled html help file from php.net (recomended) or doing a search for eregi on phpbuilder.com . I do not post code samples as a matter of principal because I am a consultant.