Here are some other commands that find matches for a regular
expression. They all operate from point to the end of the buffer, and
all ignore case in matching, if the pattern contains no upper-case
case-fold-search is non-
Display a list showing each line in the buffer that contains a match for regexp. A numeric argument specifies the number of context lines to print before and after each matching line; the default is none. To limit the search to part of the buffer, narrow to that part (see Narrowing).
The buffer `
Synonym for M-x occur.
Print the number of matches for regexp after point.
Delete each line that follows point and contains a match for regexp.
Delete each line that follows point and does not contain a match for regexp.
In addition, you can use
grep from Emacs to search a collection
of files for matches for a regular expression, then visit the matches
either sequentially or in arbitrary order. See Grep Searching.