[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regepxp-help: Replacing foo with bar but not foo.*
From: |
Patrick Drechsler |
Subject: |
Re: Regepxp-help: Replacing foo with bar but not foo.* |
Date: |
Sat, 19 Aug 2006 16:48:44 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli wrote on 18 Aug 2006 21:34:04 MET:
> * 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 and Eric, thank you both for your answers!
Cheers
Patrick
--
DJ:"You may not say YES,NO,BLACK,WHITE. OK, let's start. Are you still
sober?"
Caller: "No."
Friday night radio documents the search for intelligence