Format String Syntax
Literals
All characters are taken literally except "(" ")" "$" "\" "?" ":",
those must be prefixed by the escape character "\".
Marked subexpressions
The text values used with the format string are labeled "$1" to "$9".
"`" expands to all the text from the end of the previous match to the start of the current match,
if there was no previous match, then everything from the start of the text to the start of the match.
"'" expands to all the text from the end of the match to the end of the text.
Miscellaneous escape sequences
\a | Bell character 0x07. |
\f | Form feed character 0x0C. |
\n | Newline character 0x0A. |
\r | Carriage return character 0x0D. |
\t | Tab character 0x09. |
\v | Vertical tab character 0x0B. |
\xXX | A hexadecimal character code, where XX is one or more hexadecimal digits. |
\x{XX} | A hexadecimal character code, where XX is one or more hexadecimal digits, optionally a Unicode character. |
\cZ | The ASCII escape character x, for example \c@ is equivalent to escape-@. |
\e | Escape character. |