How can I automate the removal of hard-coded banners from locally saved web pages



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
.



Relevant Pages

  • RE: printer path
    ... the source code was useful atleast to start with. ... > Instead of getting & saving the path, maybe this would be more beneficial to ... post back & I will code you the registry part. ... could u please explain a bit further on saving the printer path in ...
    (microsoft.public.dotnet.languages.vb)
  • RE: printer path
    ... the source code was useful atleast to start with. ... > Instead of getting & saving the path, maybe this would be more beneficial to ... post back & I will code you the registry part. ... could u please explain a bit further on saving the printer path in ...
    (microsoft.public.dotnet.languages.vb)
  • RE: printer path
    ... the source code was useful atleast to start with. ... > Instead of getting & saving the path, maybe this would be more beneficial to ... post back & I will code you the registry part. ... could u please explain a bit further on saving the printer path in ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sliding Menu
    ... I have viewd the source code and this ... the css file that i got from saving the website has no clues on this. ...
    (alt.html)
  • Re: Creating to do lists
    ... A1 is the date of the opening. ... an extra field where you enter wether or not you have done what is ... Source code is made out of people! ... You've gotta tell them. ...
    (microsoft.public.excel.misc)