#7210
Yutaka Emura
Keymaster

russkinch wrote:
I am trying to use “replace in files” to remove text between two known strings. The two strings are on different lines. Essentially I want to create a macro that will find the first string and select it and everything after that up to and including the second string.

Example:
<!DOCTYPE …
delete this
delete this
… End of String –>

I’m slightly over my head in trying to figure out how to select all the text after the first string until the second string so that I can delete it.

I’m trying to remove unneeded text from about 30 files in one shot.

Thanks for your help.

What number did you set in the Additional Lines to Search for Regular Expressions in the Search tab of Customize dialog box? If you set 2 or 3, then you should be able to remove two or three lines of text with a simple regular expression.