EmEditor Text Editor Forum Index
   Questions and Answers about EmEditor Core
     How to mark selection lines and delete marked lines?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
jackrabbit
Posted on: 10/30/2009 10:08 am
Just popping in
Joined: 2/8/2008
From:
Posts: 13
How to mark selection lines and delete marked lines?
Hi all,

I want to do the following.

1. Search a keyword in a file
2. Mark all the lines that contains this keyword.
3. Delete all these lines.

I know some other tools allow users to mark all the lines that contain a specific keyword, then users can delete all the marked lines.

Can EmEditor do it?

Thanks.
ToadLoadin
Posted on: 11/1/2009 8:01 am
Just can't stay away
Joined: 7/4/2008
From: China
Posts: 76
Re: How to mark selection lines and delete marked lines?
I guess it can be implemented with find & replace using regular expression, but I'm not good at it.
gan
Posted on: 11/4/2009 8:53 am
Quite a regular
Joined: 12/29/2007
From:
Posts: 55
Re: How to mark selection lines and delete marked lines?
Could easily be done with regular expression.

Could search for:
^.*keyword.*\n

and replace with nothing. That should remove all lines that contain the word "keyword". Just change "keyword" into whatever you would like to search for.
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 
English čeština Deutsch español français italiano 日本語 Русский