Next: Commands for Fixing Typos, Previous: Controlling the Display, Up: The Emacs Editor   [Contents][Index]

17 Searching and Replacement

Like other editors, Emacs has commands to search for occurrences of a string. Emacs also has commands to replace occurrences of a string with a different string. There are also commands that do the same thing, but search for patterns instead of fixed strings.

You can also search multiple files under the control of xref (see Searching and Replacing with Identifiers) or through the Dired A command (see Operating on Files), or ask the grep program to do it (see Searching with Grep under Emacs).

  • Incremental Search
  • Nonincremental Search
  • Word Search
  • Symbol Search
  • Regular Expression Search
  • Syntax of Regular Expressions
  • Backslash in Regular Expressions
  • Regular Expression Example
  • Lax Matching During Searching
  • Replacement Commands
  • Other Search-and-Loop Commands
  • Tailoring Search to Your Needs