(lemacs.info)Replace


Next: Other Repeating Search Prev: Search Case Up: Search

Replacement Commands
====================

   Global search-and-replace operations are not needed as often in
Emacs as they are in other editors, but they are available.  In
addition to the simple `replace-string' command which is like that
found in most editors, there is a `query-replace' command which asks
you, for each occurrence of a pattern, whether to replace it.

   The replace commands all replace one string (or regexp) with one
replacement string.  It is possible to perform several replacements in
parallel using the command `expand-region-abbrevs'.  Note: Expanding
Abbrevs.

* Unconditional Replace
Replacing all matches for a string.
* Regexp Replace
Replacing all matches for a regexp.
* Replacement and Case
How replacements preserve case of letters.
* Query Replace
How to use querying.

automatically generated by info2www