From: Patrick Drechsler <patrick@pdrechsler.de>
Subject: Re: Regepxp-help: Replacing foo with bar but not foo.*
Date: Sat, 19 Aug 2006 16:48:44 +0200 [thread overview]
Message-ID: <87lkpkye5v.fsf@pdrechsler.de> (raw)
In-Reply-To: 44e6243b$0$15783$14726298@news.sunsite.dk
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
prev parent reply other threads:[~2006-08-19 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 20:19 Regepxp-help: Replacing foo with bar but not foo.* Patrick Drechsler
2006-08-18 20:34 ` Ralf Angeli
2006-08-18 21:07 ` Eric Hanchrow
2006-08-19 14:48 ` Patrick Drechsler [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lkpkye5v.fsf@pdrechsler.de \
--to=patrick@pdrechsler.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).