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: tomer
Subject: Re: regular expression for hiding comment
Date: Thu, 7 May 2009 09:21:11 -0700 (PDT)
User-agent: G2/1.0

On May 7, 7:07 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> tomer <tomer1le...@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__

Thanks for the help
I have use hide-lines , i also will try the regexp which is better
choice
Thanks a  a lot


reply via email to

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