From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomer Newsgroups: gmane.emacs.help Subject: Re: regular expression for hiding comment Date: Thu, 7 May 2009 09:21:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: <64794e53-f55b-4c77-976c-e08abd426249@e23g2000vbe.googlegroups.com> References: <81a6e898-481c-4b04-bc88-af95ad089e8e@j12g2000vbl.googlegroups.com> <7cocu53ylo.fsf@pbourguignon.informatimago.com> <7c7i0s521t.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241714586 18362 80.91.229.12 (7 May 2009 16:43:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 16:43:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 18:42:56 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M26gH-0003jI-DB for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 18:42:45 +0200 Original-Received: from localhost ([127.0.0.1]:55871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M26gG-0003GO-HL for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 12:42:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e23g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 212.143.17.66 Original-X-Trace: posting.google.com 1241713272 18154 127.0.0.1 (7 May 2009 16:21:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 7 May 2009 16:21:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000vbe.googlegroups.com; posting-host=212.143.17.66; posting-account=NuEtcAoAAADUxiHpeF0Pumy7gc4ekCfm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SIMBAR={5B3B1BCD-ECFF-4c68-864B-DCAF4127277B}),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168964 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64232 Archived-At: On May 7, 7:07=A0pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: > tomer 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. =A0 > > Notice that regexp don't 'show' anything, they 'match' input. =A0It'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 "--": > > =A0 =A0 =A0 =A0 =A0 =A0^\([^-]\|-[^-]\)*\(\|-\)$ > > -- > __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