Is it possible to manipulate downloaded content?

Is it possible to manipulate downloaded content?

A certain website I need to mirror has the <base href=”https://original.domain.com”/&gt; statement on every page so I’d need to manually edit all mirror pages to remove this tag, otherwise all relative links would leave the mirror and go to the original site, which has to be avoided.
Is it possible to have some regular expression (s/searchterm/replacement/g) to handle this automatically across the whole project?
 
Thanks for any answer, Ernest

Share Button

Answer this Question