[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__
- 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 <=
- Re: regular expression for hiding comment, tomer, 2009/05/07
- Re: regular expression for hiding comment, Peter Dyballa, 2009/05/07