[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
- regular expression for hiding comment, tomer, 2009/05/07
- Re: regular expression for hiding comment, Peter Dyballa, 2009/05/07
- Message not available
- Re: regular expression for hiding comment, tomer, 2009/05/07
- Re: regular expression for hiding comment, Pascal J. Bourguignon, 2009/05/07
- Re: regular expression for hiding comment, tomer, 2009/05/07
- RE: regular expression for hiding comment, Drew Adams, 2009/05/07
- Re: regular expression for hiding comment, Anselm Helbig, 2009/05/07
- Re: regular expression for hiding comment, Pascal J. Bourguignon, 2009/05/07
- Re: regular expression for hiding comment,
tomer <=
- Re: regular expression for hiding comment, Peter Dyballa, 2009/05/07