all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regepxp-help: Replacing foo with bar but not foo.*
@ 2006-08-18 20:19 Patrick Drechsler
  2006-08-18 20:34 ` Ralf Angeli
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Drechsler @ 2006-08-18 20:19 UTC (permalink / 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?"

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-19 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.