From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: regular expression for hiding comment Date: Thu, 7 May 2009 21:12:36 +0200 Message-ID: References: <81a6e898-481c-4b04-bc88-af95ad089e8e@j12g2000vbl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241723683 18448 80.91.229.12 (7 May 2009 19:14:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 19:14:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 21:14:33 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M2936-0004KP-Ud for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 21:14:29 +0200 Original-Received: from localhost ([127.0.0.1]:41349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2936-00010l-7s for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 15:14:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M291U-0000RH-72 for help-gnu-emacs@gnu.org; Thu, 07 May 2009 15:12:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M291P-0000Oy-Ku for help-gnu-emacs@gnu.org; Thu, 07 May 2009 15:12:47 -0400 Original-Received: from [199.232.76.173] (port=41725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M291P-0000Ou-EA for help-gnu-emacs@gnu.org; Thu, 07 May 2009 15:12:43 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:44199) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M291O-0003k7-Jo for help-gnu-emacs@gnu.org; Thu, 07 May 2009 15:12:42 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 79943FE48F51; Thu, 7 May 2009 21:12:41 +0200 (CEST) Original-Received: from [91.35.249.17] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (WEB.DE 4.110 #277) id 1M291L-0003HK-00; Thu, 07 May 2009 21:12:39 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/EP87b62KmjhiKBoUqmJJO9cFwhF9OOueFeqRf DC7unHCYrLPj//bwooDv3kuQCG6VH+vpdJUZ/ZnMSX+E+JdwAU 8RBrZMj4WG2G2kq+/umQ== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64235 Archived-At: Am 07.05.2009 um 10:54 schrieb tomer: > I think it is not working You're right! I did not test it with incremental regexp search. Thinking of it: the greediness of regexp's makes it fail! Since you mentioned grep: grep -v -e -- will do it. It will also reject lines with more than two -. This variant will work exactly: egrep -v '[^-]--[^-]' -- Greetings Pete <\ _\ O _ |o \ _\\_/-\=' _____________(_)|-(_) (_)___________________________________