Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto hyperlink URL

    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

  • #2
    New Coder
    Join Date
    Aug 2003
    Location
    Rhondda Cynon Taff, Wales
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Hockey
    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
    Ryan Jones(sciguyryan)
    Visit us and chat at our forums - the Kidscript Forums


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •