EmEditor (text editor) Forum Index
   Questions and Answers about Plug-ins
     Delete all lines NOT containing ....
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Salabim
Posted on: 7/31/2010 4:16 am
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
Delete all lines NOT containing ....
Hi,

Can you help me out, which function or snippet, or macro is able to do this :

In an open text file, delete all lines that DO NOT contain the word the user entered in a prompt, or perhaps lines that DO NOT contain the word currently in the Clipboard cache.

I have a big text file open, and I would like to filter out all lines that DO NOT contain the string "China".

Can you help me please ?
Cirillo
Posted on: 7/31/2010 6:31 am
Not too shy to talk
Joined: 7/2/2010
From:
Posts: 21
Re: Delete all lines NOT containing ....
Hi,

There's a macro in the Library here. It extracts lines not containing a specified string to a new file.
http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=170
Give it a try, hope that helps
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文