[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs/Mac OS X/search and replace
From: |
Anupam Sengupta |
Subject: |
Re: Emacs/Mac OS X/search and replace |
Date: |
Fri, 06 Jul 2007 13:44:56 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (windows-nt) |
>>>>> "Frank" == Frank Murray <fjmurray1@mac.com> writes:
Frank> Hello, A new post. I'm trying to find the feature (if Emacs, v21.2.1
Frank> on Mac OS X) where you can search and replace, i.e., whatever key
Frank> command, either ctrl - <some key>, or Meta - <some key> in order to
Frank> search for a particular character or string and replace it with
Frank> something else, again:
Frank> search <some text> replace with <some other text>, i.e., search "0"
Frank> replace with "1"
See M-% (query-replace)
You can also do search and replace using regexps:
C-M-% (query-replace-regexp)
See
http://www.emacswiki.org/cgi-bin/emacs-en?CategorySearchAndReplace
for additional details.
Also note that info is your friend here. Try
C-h i
HTH,
--
Anupam