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

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

Re: replace-regexp not working?


From: Jesper Harder
Subject: Re: replace-regexp not working?
Date: Tue, 22 Jul 2003 02:21:38 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Sanford Selznick <see-message@for.real.address.com> writes:

> I have a file open (input.txt) and I'm trying to replace all "x" or "y" 
> characters with a string, say "12".
>
> So I M-x replace-regexp RET (x|y) RET 12 RET
>
> And nothing happens.  The cursor is at the beginning of the buffer.
>
> What am I doing wrong?

`|' needs to be quoted.  Soo you should do:

  M-x replace-regexp RET x\|y RET 12 RET


reply via email to

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