all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: tomer <tomer1levin@walla.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: regular expression for hiding comment
Date: Thu, 7 May 2009 21:12:36 +0200	[thread overview]
Message-ID: <BB82C7A3-4389-4F19-8858-A6A2CD51A86D@Web.DE> (raw)
In-Reply-To: <a6f9f8dc-3931-4f48-94da-921db6f83713@u10g2000vbd.googlegroups.com>


Am 07.05.2009 um 10:54 schrieb tomer:

> I think it is not working

You're right! I did not test it with incremental regexp search.  
Thinking of it: the greediness of regexp's makes it fail! Since you  
mentioned grep:

	grep -v -e --

will do it. It will also reject lines with more than two -. This  
variant will work exactly:

	egrep -v '[^-]--[^-]'

--
Greetings

   Pete      <\
              _\     O  _
             |o \  _\\_/-\='
_____________(_)|-(_)  (_)___________________________________






      parent reply	other threads:[~2009-05-07 19:12 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
2009-05-07 16:21           ` tomer
2009-05-07 19:12     ` Peter Dyballa [this message]

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=BB82C7A3-4389-4F19-8858-A6A2CD51A86D@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomer1levin@walla.co.il \
    /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.