It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Need help making links,

Need help making links,

Postby The Fred on Mon Nov 20, 2006 2:00 pm

The urls come out in this format www.url.com|Description

I want to turn them into links with the name that is after the |
(Linking to the URL before the |)

So the one above would come out a link called "Description" and lead to www.url.com

I need to do a few hundred all at once *sigh*
Can I use replace all in notpad,
Or can I use frontpage to change them all at once?
The Fred
 
Posts: 2
Joined: Mon Nov 20, 2006 1:56 pm

Postby The Fred on Mon Nov 20, 2006 2:14 pm

I managed to get it to work with notepad but I have to replace several things and it would take years to do this manually
The Fred
 
Posts: 2
Joined: Mon Nov 20, 2006 1:56 pm

Postby ReFredzRate on Wed Nov 22, 2006 6:49 pm

I'm sorry. You'll have to change them all by hand, one at a time :(

By the way, I thought I was THE Fred? :(
ReFredzRate
1000+ Club
 

Postby mwa103 on Wed Nov 22, 2006 8:49 pm

I created a java program that might help. It all depends on how the file is formatted. If the | character is only used on the links and the descriptions are only one word long this should work.

I posted the file to my webserver:
http://www.wiu.edu/users/mwa103/DEVPPL/ParseHTML.java

Hope this will help you out. If not, I may be able to modify it. You will need java JDK installed to compile and run. New files will be stored in a folder called newFiles.

-Mike
mwa103
100+ Club
 
Posts: 206
Joined: Mon Mar 07, 2005 10:55 pm


Who is online

Users browsing this forum: No registered users and 6 guests