summaryrefslogtreecommitdiff
path: root/devdocs/elisp/searching-and-matching.html
blob: 0abdf1e6a2a8f2aeaa3f1904c254d92af009d49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 <h2 class="chapter">Searching and Matching</h2>  <p>GNU Emacs provides two ways to search through a buffer for specified text: exact string searches and regular expression searches. After a regular expression search, you can examine the <em>match data</em> to determine which text matched the whole regular expression or various portions of it. </p> <table class="menu" border="0" cellspacing="0"> <tr>
<td align="left" valign="top">• <a href="string-search" accesskey="1">String Search</a>
</td>
<td> </td>
<td align="left" valign="top">Search for an exact match. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="searching-and-case" accesskey="2">Searching and Case</a>
</td>
<td> </td>
<td align="left" valign="top">Case-independent or case-significant searching. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="regular-expressions" accesskey="3">Regular Expressions</a>
</td>
<td> </td>
<td align="left" valign="top">Describing classes of strings. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="regexp-search" accesskey="4">Regexp Search</a>
</td>
<td> </td>
<td align="left" valign="top">Searching for a match for a regexp. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="posix-regexps" accesskey="5">POSIX Regexps</a>
</td>
<td> </td>
<td align="left" valign="top">Searching POSIX-style for the longest match. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="match-data" accesskey="6">Match Data</a>
</td>
<td> </td>
<td align="left" valign="top">Finding out which part of the text matched, after a string or regexp search. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="search-and-replace" accesskey="7">Search and Replace</a>
</td>
<td> </td>
<td align="left" valign="top">Commands that loop, searching and replacing. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="standard-regexps" accesskey="8">Standard Regexps</a>
</td>
<td> </td>
<td align="left" valign="top">Useful regexps for finding sentences, pages,... </td>
</tr> </table> <p>The ‘<samp>skip-chars…</samp>’ functions also perform a kind of searching. See <a href="skipping-characters">Skipping Characters</a>. To search for changes in character properties, see <a href="property-search">Property Search</a>. </p><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
    <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Searching-and-Matching.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Searching-and-Matching.html</a>
  </p>
</div>