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

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

Re: query-replace


From: B. T. Raven
Subject: Re: query-replace
Date: Fri, 05 May 2006 14:55:06 GMT

"Malte Spiess" <cuts@arcor.de> wrote in message
news:87bqudhsox.fsf@ulm.malte.spiess...
> Pedro Sa da Costa <op132650c@mail.telepac.pt> writes:
>
> > Hi,
> >
> > 1 -
> > I have this text: "and the android goes away."
> > I want to replace the word "and" to "or", but i don't want to replace
> > the word " [and]roid".  How should i do this in emacs? The M-%
> > doesn't work in this case.
>
> The simplest way should be to replace "and " by "or ".
>
> > Thanks,
> > Pedro
>
> Greetings
> Malte

Even simpler is M-%  _and_  RET _or_  (where the underscores represent
explicit spaces typed into the pattern strings.

Ed



reply via email to

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