I have lots of html files and would like to rip out a section from each one, the text/code varies so might not always be in between tags. Any quick/easy ways to do this?
For example I might want to get everything (text and html) between
the word Home near top of page and the word Copyright near bottom and save to a new file.
Another example: get everything between the strings “Test”
Test
some html code
Test
I can do that yes but there are lots of pages so I need batch/automation.
Browsing the net it seems I need Regular Expressions but I’ve no idea how to write a regular expression to find everything between two words.
The ultimate goal is to have everything between two matching words (such as “Test” and “Test” ) removed leaving a file stripped of all the code and text between “test” and “test”.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘CSS’ is closed to new topics and replies.