From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: regular expression for hiding comment
Date: Thu, 07 May 2009 18:07:58 +0200 [thread overview]
Message-ID: <7c7i0s521t.fsf@pbourguignon.anevia.com> (raw)
In-Reply-To: d60d4b40-55ab-4b43-87bd-14d97daa024c@s16g2000vbp.googlegroups.com
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__
next prev parent reply other threads:[~2009-05-07 16:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 6:44 regular expression for hiding comment tomer
2009-05-07 8:20 ` Peter Dyballa
[not found] ` <mailman.6787.1241684779.31690.help-gnu-emacs@gnu.org>
2009-05-07 8:54 ` tomer
2009-05-07 12:07 ` Pascal J. Bourguignon
2009-05-07 13:31 ` tomer
2009-05-07 14:19 ` Anselm Helbig
2009-05-07 14:32 ` Drew Adams
2009-05-07 16:07 ` Pascal J. Bourguignon [this message]
2009-05-07 16:21 ` tomer
2009-05-07 19:12 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c7i0s521t.fsf@pbourguignon.anevia.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.