Quick Nav:  Online Store   |   Login | Register

Regex request...

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Nelson Fernandez
<100 Posts
Posts:50


04/20/2007 12:35 PM  
Can some regex expert please help. I'd like a regex that would make < A >tags for any URLs

for example:  http://www.google.com  or   www.yahoo.com  would become:

< a href="http://www.google.com" > http://www.google.com < / a >


I can find the regex's to detect URLS/Links  on this site:

http://regexlib.com/Search.aspx?k=link

BUT if the link is already in a tag then I don't want to replace it.

This is a tough one but is it impossible?



John Mitchell
Posts:3033


04/20/2007 12:56 PM  
Yes, that would be a challenge. I'll work on a replacement regex to make that happen.
green flash
<50 Posts
Posts:45


08/05/2007 12:36 PM  
John any update on this?
Btw i will focus on the task this week.

DotNetNuke Türkçe
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software