help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regepxp-help: Replacing foo with bar but not foo.*


From: Ralf Angeli
Subject: Re: Regepxp-help: Replacing foo with bar but not foo.*
Date: Fri, 18 Aug 2006 22:34:04 +0200

* 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]