Mercurial > emacs
comparison lispref/searching.texi @ 76837:4f96f3f74c69
Improve indexing.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 31 Mar 2007 14:37:05 +0000 |
parents | 6d19c76d81c5 |
children | 01e1993af161 |
comparison
equal
deleted
inserted
replaced
76836:9feeb7a817c0 | 76837:4f96f3f74c69 |
---|---|
1184 * Saving Match Data:: Saving and restoring the match data. | 1184 * Saving Match Data:: Saving and restoring the match data. |
1185 @end menu | 1185 @end menu |
1186 | 1186 |
1187 @node Replacing Match | 1187 @node Replacing Match |
1188 @subsection Replacing the Text that Matched | 1188 @subsection Replacing the Text that Matched |
1189 @cindex replace match | |
1189 | 1190 |
1190 This function replaces all or part of the text matched by the last | 1191 This function replaces all or part of the text matched by the last |
1191 search. It works by means of the match data. | 1192 search. It works by means of the match data. |
1192 | 1193 |
1193 @cindex case in replacements | 1194 @cindex case in replacements |
1542 @end ignore | 1543 @end ignore |
1543 | 1544 |
1544 @node Search and Replace | 1545 @node Search and Replace |
1545 @section Search and Replace | 1546 @section Search and Replace |
1546 @cindex replacement | 1547 @cindex replacement |
1548 @cindex search and replace | |
1547 | 1549 |
1548 If you want to find all matches for a regexp in part of the buffer, | 1550 If you want to find all matches for a regexp in part of the buffer, |
1549 and replace them, the best way is to write an explicit loop using | 1551 and replace them, the best way is to write an explicit loop using |
1550 @code{re-search-forward} and @code{replace-match}, like this: | 1552 @code{re-search-forward} and @code{replace-match}, like this: |
1551 | 1553 |