Geany Inline Help

.Matches any character.
(This marks the start of a region for tagging a match.
)This marks the end of a tagged region.
\nWhere n is 1 through 9 refers to the first through ninth tagged region when searching or replacing.

Searching for (Wiki)\1 matches WikiWiki.

If the search string was Fred([1-9])XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY.
\0When replacing, the whole matching text.
\bThis matches a word boundary.
\cA backslash followed by d, D, s, S, w or W, becomes a character class (both inside and outside sets []).

- d: decimal digits
- D: any char except decimal digits
- s: whitespace (space, \t \n \r \f \v)
- S: any char except whitespace (see above)
- w: alphanumeric & underscore
- W: any char except alphanumeric & underscore
\xThis 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. Use \ for a literal backslash.
[…]Matches one of the characters in the set. If the first character in the set is ^, it matches the characters NOT in the set, i.e. complements the set. A shorthand S-E (start dash end) is used to specify a set of characters S up to E, inclusive.

The special characters ] and - have no special meaning if they appear first in the set. - can also be last in the set. To include both, put ] first: []A-Z-].

Examples:

[]|-] matches these 3 chars
[]-|] matches from ] to | chars
[a-z] any lowercase alpha
[^]-] any char except - and ]
[^A-Z] any char except uppercase alpha
[a-zA-Z] any alpha
^This matches the start of a line (unless used inside a set, see above).
$This matches the end of a line.
*This matches 0 or more times. For example, Sa*m matches Sm, Sam, Saam, Saaam and so on.
+This matches 1 or more times. For example, Sa+m matches Sam, Saam, Saaam and so on.
?This matches 0 or 1 time(s). For example, Joh?n matches John, Jon.
Quelle: Geany Help: …/html/index.html#regular-expressions

Geany Online Documentation

Metacharacters outside square brackets
\general escape character with several uses
^assert start of string (or line, in multiline mode)
$assert end of string (or line, in multiline mode)
.match any character except newline (by default)
[start character class definition
|start of alternative branch
(start subpattern
)end subpattern
?extends the meaning of (, or 0/1 quantifier, or quantifier minimizer
*0 or more quantifier
+1 or more quantifier, also “possessive quantifier”
{start min/max quantifier
Metacharacters inside square brackets
\general escape character
^negate the class, but only if the first character
-indicates character range
[POSIX character class (only if followed by POSIX syntax)
]terminates the character class
Non-printing characters
\aalarm, that is, the BEL character (hex 07)
\cx”control-x”, where x is any character
\eescape (hex 1B)
\fformfeed (hex 0C)
\nnewline (hex 0A)
\rcarriage return (hex 0D)
\ttab (hex 09)
\dddcharacter with octal code ddd, or backreference
\xhhcharacter with hex code hh
\x{hhh..}character with hex code hhh..
Non-printing character codes
\040is another way of writing a space
\40is the same, provided there are fewer than 40 previous capturing subpatterns
\7is always a back reference
\11might be a back reference, or another way of writing a tab
\011is always a tab
\0113is a tab followed by the character “3”
\113might be a back reference, otherwise the character with octal code 113
\377might be a back reference, otherwise the byte consisting entirely of 1 bits
\81is either a back reference, or a binary zero followed by the two characters “8” and “1”
Generic characters
\dany decimal digit
\Dany character that is not a decimal digit
\sany whitespace character
\Sany character that is not a whitespace character
\wany “word” character
\Wany “non-word” character
Simple assertions
\bmatches at a word boundary
\Bmatches when not at a word boundary
\Amatches at the start of the string
\Zmatches at the end of the string or before a newline at the end of the string
\zmatches only at the end of the string
\Gmatches at first matching position in the string