From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: query-replace Date: Fri, 05 May 2006 14:55:06 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <87bqudhsox.fsf@ulm.malte.spiess> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146843641 23770 80.91.229.2 (5 May 2006 15:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 15:40:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 05 17:40:40 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fc2Pw-0004ox-09 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 May 2006 17:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc2Pv-0005BN-Gy for geh-help-gnu-emacs@m.gmane.org; Fri, 05 May 2006 11:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.32.87 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.news.pas.earthlink.net 1146840906 4.159.32.87 (Fri, 05 May 2006 07:55:06 PDT) Original-NNTP-Posting-Date: Fri, 05 May 2006 07:55:06 PDT Original-Xref: shelby.stanford.edu gnu.emacs.help:139235 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34859 Archived-At: "Malte Spiess" wrote in message news:87bqudhsox.fsf@ulm.malte.spiess... > Pedro Sa da Costa 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