<html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-15"><title>Search and Replace</title><linkrel="stylesheet"href="geany.css"type="text/css"><metaname="generator"content="DocBook XSL Stylesheets V1.68.1"><linkrel="start"href="index.html"title="
Geany 0.8
"><linkrel="up"href="ch03.html"title="Chapter<65>3.<2E>Usage"><linkrel="prev"href="ch03s03.html"title="General"><linkrel="next"href="ch03s05.html"title="Preferences"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Search and Replace</th></tr><tr><tdwidth="20%"align="left"><aaccesskey="p"href="ch03s03.html">Prev</a><EFBFBD></td><thwidth="60%"align="center">Chapter<EFBFBD>3.<2E>Usage</th><tdwidth="20%"align="right"><EFBFBD><aaccesskey="n"href="ch03s05.html">Next</a></td></tr></table><hr></div><divclass="section"lang="en"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="id2530014"></a>Search and Replace</h2></div></div></div><p>
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>