Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing HTML Code

Status
Not open for further replies.

stevenr

Technical User
Feb 21, 2001
89
GB
I'm probably in totally the wrong group,

I have a few web pages that I want to change the links on.

The idea is to have 30 pages of the same design but with different links

I've made a batch file to copy a main design and now need to change the links as their all pointing to the same place at the moment.

To save me going through all 30 pages and changing 18 links on each one, can i make a batch file or something else to do it for me.

I know i'm being lazy but it's so much quicker and easier.

Any help appreciated

Steve
 
sure, you can write a perl or php program which will open each file and change the current link to the new one using regular expressions.

 
Steve,

try checking out the other forums on Perl and stuff like that; you'll find experts there that most likely can help you.
If you got an answer, please post it here; i'm sure there are page builders that would LOVE a nifty trick like that !

Regards,
Ronald.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top