Results 1 to 3 of 3

Thread: [RESOLVED] generate links from text

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Posts
    272

    Resolved [RESOLVED] generate links from text

    i was wondering the best way to generate a link from plain text, in other words 'link-a-fy' text.

    for example, the text says
    Code:
    http://vbforum.com
    but i want that converted to :

    Code:
    <a href="http://vbforum.com">http://vbforum.com</a>
    the number of links in the text file (or string) will vary.

    so let's say i have this text file:

    Code:
    The little red fox can be found at http://redfox.com and the little red hen can be found at http://littleredhen.com
    
    you can also get the red puppy at:
    
    http://redpuppies.net
    
    if you have any more questions send them to:
    
    [email protected]
    would read like this when revised:


    Code:
    The little red fox can be found at <a href="http://redfox.com">http://redfox.com</a> and the little red hen can be found at <a href="http://littleredhen.com">http://littleredhen.com</a>
    
    
    you can also get the red puppy at:
    
    <a href="http://redpuppies.net">http://redpuppies.net</a>
    
    if you have any more questions send them to:
    
    <a href="mailto:[email protected]">[email protected]</a>

    i know this sort of trick is as old as the hills, but it is new to me. hopefully it isnt too hard to do
    Last edited by inosent; Mar 26th, 2007 at 02:23 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width