- AuthorPosts
- April 26, 2009 at 5:15 am #7203russkinchMember
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:
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.
April 27, 2009 at 6:03 am #7210Yutaka EmuraKeymasterrusskinch 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.
- AuthorPosts
- You must be logged in to reply to this topic.