Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Text editor or other software with text extraction?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30450
    Danny9
    Member

    Hi,

    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

    #78772
    Bob
    Member

    Can I ask what you need it for? I mean, can’t you just copy and paste everything that is between the words Home and Copyright?

    #78773
    Danny9
    Member

    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”.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.