...

View Full Version : Auto hyperlink URL



Hockey
08-07-2004, 05:56 AM
Can someone show me the regex required to automatically hyperlink an URL in a plain text document using JScript and regex??? It must search an entire variable (containging plain text no HTML, it's been stripped) and replace any URL with a hyperlink like <a href="http://www.boo.com">http://www.boo.com<a/>

Sorry but i'm a total regex newbie/I just don't have the desire to learn...which sucks considering how much I us regex :)

Thanks alot

sciguyryan
08-07-2004, 05:34 PM
Can someone show me the regex required to automatically hyperlink an URL in a plain text document using JScript and regex??? It must search an entire variable (containging plain text no HTML, it's been stripped) and replace any URL with a hyperlink like <a href="http://www.boo.com">http://www.boo.com<a/>

Sorry but i'm a total regex newbie/I just don't have the desire to learn...which sucks considering how much I us regex :)

Thanks alot


I suggest you look here: www.regexplib.com :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum