From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: Regepxp-help: Replacing foo with bar but not foo.* Date: Fri, 18 Aug 2006 22:34:04 +0200 Organization: nil Message-ID: <44e6243b$0$15783$14726298@news.sunsite.dk> References: <87k655x0dx.fsf@pdrechsler.de> Reply-To: angeli@caeruleus.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155933652 19014 80.91.229.2 (18 Aug 2006 20:40:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2006 20:40:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 18 22:40:52 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GEB95-00086C-W2 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Aug 2006 22:40:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GEB95-0003fH-Ec for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Aug 2006 16:40:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody Cancel-Lock: sha1:nkNLkVfyqStQDL07mhogLU0odhQ= Original-Lines: 19 Original-NNTP-Posting-Host: 84.165.9.110 Original-X-Trace: news.sunsite.dk DXC=91>JAB3:ZiiN2]LRcf6HDcYSB=nbEKnkkBkJCK@5_U3kce3h@0W\omlKaa1aeliV3d@gD4ogM1\PjVdk5B2iLf4dGMZ]H5IZn 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:36770 Archived-At: * Patrick Drechsler (2006-08-18) writes: > the rule I'm trying to imply is "replace foo if it is not > followed by a dot". > > INPUT > > foo jfkda > foo.bar fdjak > > OUTPUT > > fooMYREPLACEMENT jfkda > foo.bar fdjak C-M-% foo\([^.]\) RET fooMYREPLACEMENT\1 -- Ralf