From: Patrick Drechsler <patrick@pdrechsler.de>
Subject: Regepxp-help: Replacing foo with bar but not foo.*
Date: Fri, 18 Aug 2006 22:19:22 +0200 [thread overview]
Message-ID: <87k655x0dx.fsf@pdrechsler.de> (raw)
Hi,
how do I replace the term `foo' with `bar' when `foo' is followed
by a conditional term? Or what do I have to pass as argument to
`M-x replace-string'?
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
TIA
Patrick
--
"If you choke a smurf, what color does it turn?"
next reply other threads:[~2006-08-18 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 20:19 Patrick Drechsler [this message]
2006-08-18 20:34 ` Regepxp-help: Replacing foo with bar but not foo.* Ralf Angeli
2006-08-18 21:07 ` Eric Hanchrow
2006-08-19 14:48 ` Patrick Drechsler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k655x0dx.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.