- April 7, 2007 at 6:23 am #4290
first I want to say that EmEditor is a great tool.
There is one question I want to ask.
Is there a way to cut whole lines that contain a specified phrase and paste them to a new file?
Let me explain a bit. For example there is a file that contains the following lines:
I search for “AA” and EmEditor cut these lines and generates a new file with the lines:
The original file now contains only these lines without “AA”:
The new generated file with the “AA”-lines can be saved with a new name.
I tried several ways with “regular expressions” or “search and replace” but I couldn´t find out how the whole lines are cut out of the original file.
Any help available?
Thanks a lot in advance for support.April 10, 2007 at 5:00 pm #4295
I wrote similar macros before:
Macro that extracts lines that contain the specified string
Macro that extracts lines that do not contain the specified string
You can run these macros, or you can combine these macros and run once.April 11, 2007 at 7:12 am #4296
Thanks a lot, Yatuka, that combination of macros works… 😆
You must be logged in to reply to this topic.