Welcome. Well, you need to be more specific about which 25 lines…what describes them… Only then (and possibly after some back-and-forth about your description of these lines to nail down something that a regex specification can be built from) will anyone be able to help you.

There needs to be a discernible pattern to your data that you need to define; we can’t guess because we aren’t in your brain and can’t know what you are getting at.

So a valid thing for you to say might be:The lines I need to delete always start with a title line, followed by an empty line, followed by a line that starts with “by” and a space and a name, followed by a blank line, then a bunch of lines with other data, and lastly a line that starts with “Summary” , which is the last line of the group to delete.

Something like that would be a starting point for offering up some advice on how to solve your problem.

I did say I was new, and I didn’t know how to express what I wanted done.

Thank you for the correction.

The lines I need to delete always start with a title line, followed by an empty line, followed by a line that starts with “by” and a space and a name, followed by a blank line, then a bunch of lines with other data, and lastly a line that starts with “Summary” , which is the last line of the group to delete.

Very high-level summary of what happens with the find and replace:
From the start of file (in a Replace in Files operation) match a string of any characters followed by a line-ending with “Summary:” immediately after; continue matching through (and including) the line-ending of the “Summary:” line. At that point, grab the contents of the remainder of the file and remember it. At replace time, substitute what was remembered (everything after the “Summary:” line) for the contents of the entire file. This effectively deletes the desired lines.

For the regex experts out there reading this, I DID try some things with the \A anchor (for start-of-file matching), but I recall reading something from @guy038 on a bug with \A in Notepad++'s regex engine, and my testing bore out that there is a problem with it.