www.delorie.com/gnu/docs/emacs/emacs_91.html   search  
 
Buy the book!


GNU Emacs Manual

[ < ] [ > ]   [ << ] [ 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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003