From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Roland Reichenberg" Newsgroups: gmane.emacs.help Subject: how to flush lines that do NOT include characters 'FK' Date: Thu, 7 Aug 2003 13:41:17 +0200 Organization: CSL - Computer Service Langenbach GmbH Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: main.gmane.org 1060259273 32565 80.91.224.253 (7 Aug 2003 12:27:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2003 12:27:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 14:28:16 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19kjsO-0005yu-00 for ; Thu, 07 Aug 2003 14:28:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kjSK-0000au-VA for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2003 08:01:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.csl-gmbh.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: kk158.aachen.utimaco.de Original-X-Trace: news.nrw.net 1060257236 19592 194.245.91.158 (7 Aug 2003 11:53:56 GMT) Original-X-Complaints-To: news@csl-gmbh.net Original-NNTP-Posting-Date: Thu, 7 Aug 2003 11:53:56 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Original-Xref: shelby.stanford.edu gnu.emacs.help:115715 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11636 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11636 Hi NG, in my buffer, I want to flush all lines that do NOT contain the letters "FK" My buffer contains lots of lines like: laksjdfh oqwirutz 095876 mxvb aelkdjfFKddd dffff kkkkss kkssss aeskldjfopqirt iquirmvqkrik owuiertznvc q9prskladhf FK_hhh20894 1s9845FK01 095678jf ajfhlakjdfh >>From these lines I want to filter the follwing aelkdjfFKddd FK_hhh20894 1s9845FK01 Any suggestions for a REGEXP? I have tried the following: M-x flush-lines [^FK] But without success. Who can help? Thanks in advance, Roland