How can I automate the removal of hard-coded banners from locally saved web pages
- From: orel.stringa@xxxxxxxxx (Orel Stringa)
- Date: Fri, 29 Apr 2005 13:51:23 +0200
Hi,
I sometime happen to save certain web pages of interest (tutorials,
articles, etc)
locally on my PC. Unfortunately, some of these pages do carry top and
bottom banners
which are displayed every time I open the page locally on my PC (while
PC is hooked
up to the Internet).
I understand this is caused by the fact that the urls of these banners
are called in the source code of concerned web pages every
time the page is loaded.
I came up with a simple regex to automate the finding and removal of
"offending html code"
on multiple source code files, but that requires opening and saving
the source code in text files in advance. This is too much work when
talking about hundreds of such web pages.
Do you have some ideas how to use Perl to automate the opening of the
source code
on multiple files, removing the "offending code" and at the end saving
the source code on each
html page?
Thank you,
Orel
.
- Follow-Ups:
- Prev by Date: Re: REGEXP removing - il- - -b-f and - il- - - - f
- Next by Date: RE: How can I automate the removal of hard-coded banners from locallysaved web pages
- Previous by thread: parsing command line arguments multiple times
- Next by thread: RE: How can I automate the removal of hard-coded banners from locallysaved web pages
- Index(es):
Relevant Pages
|