22822d8a26
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@74 ea778897-0a13-0410-b9d1-a72fbfd435f5
26 lines
4.2 KiB
HTML
26 lines
4.2 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Search and Replace</title><link rel="stylesheet" href="geany.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.68.1" /><link rel="start" href="index.html" title=" 			Geany 0.4 		" /><link rel="up" href="ch03.html" title="Chapter 3. Usage" /><link rel="prev" href="ch03s03.html" title="General" /><link rel="next" href="ch03s05.html" title="Preferences" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Search and Replace</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s03.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Usage</th><td width="20%" align="right"> <a accesskey="n" href="ch03s05.html">Next</a></td></tr></table><hr /></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2530624"></a>Search and Replace</h2></div></div></div><p>
|
||
You can use regular expressions in the search dialog, just by activating the check box(see
|
||
the image below). Detailed information about special characters can be found in the
|
||
<a href="ch03s04.html#regexp" title="Table 3.2. Regular expressions">Table 3.2, “Regular expressions”</a>.
|
||
</p><div class="figure"><a id="id2530654"></a><p class="title"><b>Figure 3.1. Search dialog</b></p><div><img src="images/find_dialog.jpg" alt="Search dialog" /></div></div><p>
|
||
|
||
</p><p>
|
||
</p><div class="table"><a id="regexp"></a><p class="title"><b>Table 3.2. Regular expressions</b></p><table summary="Regular expressions" cellspacing="0" cellpadding="4" border="1"><colgroup><col /><col /></colgroup><thead><tr><th colspan="2" align="left">
|
||
In a regular expression, the following characters are interpreted:
|
||
</th></tr></thead><tbody><tr><td>.</td><td>Matches any character.</td></tr><tr><td>\(</td><td>This marks the start of a region for tagging a match.</td></tr><tr><td>\)</td><td>This marks the end of a tagged region.</td></tr><tr><td>\n</td><td>Where n is 1 through 9 refers to the first through ninth tagged region
|
||
when replacing. For example, if the search string was Fred\([1-9]\)XXX
|
||
and the replace string was Sam\1YYY, when applied to Fred2XXX this would
|
||
generate Sam2YYY.
|
||
</td></tr><tr><td>\<</td><td>This matches the start of a word.</td></tr><tr><td>\></td><td>This matches the end of a word.</td></tr><tr><td>\x</td><td>This allows you to use a character x that would otherwise have a special
|
||
meaning. For example, \[ would be interpreted as [ and not as the start
|
||
of a character set.
|
||
</td></tr><tr><td>[...]</td><td>This indicates a set of characters, for example, [abc] means any of the
|
||
characters a, b or c. You can also use ranges, for example [a-z] for any
|
||
lower case character.
|
||
</td></tr><tr><td>[^...]</td><td>The complement of the characters in the set. For example, [^A-Za-z] means
|
||
any character except an alphabetic character.
|
||
</td></tr><tr><td>$</td><td>This matches the end of a line.</td></tr><tr><td>*</td><td>This matches 0 or more times. For example, Sa*m matches Sm, Sam, Saam, Saaam and so on.</td></tr><tr><td>+</td><td>This matches 1 or more times. For example, Sa+m matches Sam, Saam, Saaam and so on.</td></tr></tbody></table></div><p>
|
||
</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s03.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">General </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Preferences</td></tr></table></div></body></html>
|