# Supported Regular Expressions

When searching for text you can use the regular expressions as defined by the Pattern class.
Additionally, \R can be used to match any form of line delimiter (Unix, Windows, Classic Mac OS). Note that \R does not work in character groups ([]).

The replace string allows the following constructs:

$i | inserts capturing group i.
\i | inserts capturing group i (same as $i).
\x | quotes character x (unless \x has a special meaning)
\R | inserts the default line delimiter of the document
\xhh | inserts the hexadecimal character hh
\uhhhh | inserts the Unicode character hhhh
\n | inserts a newline character (usually, you should use \R instead)
\r | inserts a carriage-return character (usually, you should use \R instead)
\t | inserts a tab character
\f | inserts a form-feed character
\a | inserts an alert (beep) character
\e | inserts an escape character
\cX | inserts the control character for X
\C | retains the casing of the match (all lower case, all upper case, capitalized) for the rest of the replace string