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: Pascal J. Bourguignon
Subject: Re: regular expression for hiding comment
Date: Thu, 07 May 2009 18:07:58 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

tomer <tomer1levin@walla.co.il> writes:
> Thanks for the reply,
> sorry for the unclear question.
> I need a regexp which show all line execpt lines which include the
> string "--" (the qoute is not part of the sign).

Ah, this is clearer.  

Notice that regexp don't 'show' anything, they 'match' input.  It's
the program that use the regexp that may decide to show or hide lines
depending on whether a regexp match them.

Here is such a regexp matching any line but those containing "--":
  
           ^\([^-]\|-[^-]\)*\(\|-\)$


-- 
__Pascal Bourguignon__


reply via email to

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