Click to See Complete Forum and Search --> : Is there a way of turning a list of URLs into links without having to code each one..
Problem: I have a list of URLs, some 5,000 odd, in a notepad file and I am wanting to apply html tags to turn each and every one of them into hyperlinks for posting onto my website. Is there a way of doing this, either by an html command or a piece of software that will add the correct tags automatically? Obviously I am
NOT wanting to have to code each one individually and there must be a way around this. I understand the Autoformat feature in MS Word does this but whenever I use it on more than a dozen or so links it locks the program up. Any help? Thanks guys...
Tash
Charles
09-25-2003, 07:32 AM
It would be a simple task for me to write you a little Perl script to do just that. You'll need to down load and install an interpreter but they're free. If you're game then please post about 5 lines of your text file and an example of how you want the rest of the page to look. It may, however, take me up to a day to get around to it
But if these links are to the sort of sites of which my mother would diapprove then the deal is off.
starrwriter
09-25-2003, 10:16 PM
5,000 links? Who is going to wade through that many? And how many pages will be involved? Bad idea.
Aronya1
09-26-2003, 02:15 PM
Copy & paste into Word. It will turn everything into links.
spufi
09-26-2003, 03:05 PM
Originally posted by Aronya1
Copy & paste into Word. It will turn everything into links.
They already mentioned trying to do it in Word.
And 5K? I can't even imagine finding that many links worth putting on a site to link to. I think I would be doing good with a 100. :p
Aronya1
09-26-2003, 03:24 PM
Originally posted by spufi
They already mentioned trying to do it in Word.
And 5K? I can't even imagine finding that many links worth putting on a site to link to. I think I would be doing good with a 100. :p
My bad. Some day I'll learn to read...
I agree about the number of links. It would be interesting to know how he intends to use them.
S'ok thanks guys- perservered and did it with Word (just took a hellova lot of time). In case you're wondering- I autoformatted the document, saved it as an .htm file, opened it, viewed source, then used the replace feature in notepad to remove all the unwanted code. Thanks for the help!
PeOfEo
09-26-2003, 11:49 PM
you can take a crack at using this if you are still having problems or have similar ones in the future
http://knights.europe.webmatrixhosting.net/replacer.aspx this will replace a character with another character so you can replace http:// with <a href="http:// or something and .com or .net with .net">Text</a> That might not be exactly what you want but I use it for mass chages for strings and things where I need to filter a character or something