help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regular expression for hiding comment


From: Peter Dyballa
Subject: Re: regular expression for hiding comment
Date: Thu, 7 May 2009 21:12:36 +0200


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 \  _\\_/-\='
_____________(_)|-(_)  (_)___________________________________






reply via email to

[Prev in Thread] Current Thread [Next in Thread]