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
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