[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

K. Searching and Replacement

Like other editors, Emacs has commands for searching for occurrences of a string. The principal search command is unusual in that it is incremental; it begins to search before you have finished typing the search string. There are also nonincremental search commands more like those of other editors.

Besides the usual replace-string command that finds all occurrences of one string and replaces them with another, Emacs has a more flexible replacement command called query-replace, which asks interactively which occurrences to replace.

K.1 Incremental Search  Search happens as you type the string.
K.2 Nonincremental Search  Specify entire string and then search.
K.3 Word Search  Search for sequence of words.
K.4 Regular Expression Search  Search for match for a regexp.
K.5 Syntax of Regular Expressions  Syntax of regular expressions.
K.6 Searching and Case  To ignore case while searching, or not.
K.7 Replacement Commands  Search, and replace some or all matches.
K.8 Other Search-and-Loop Commands  Operating on all matches for some regexp.

This document was generated on April 2, 2002 using texi2html