Anchors
Basic metacharacters
Character classes
Comments
Control and code
Grouping
Look around
Mode modifiers
Quantifiers
Specific characters
|
Unless they are a metacharacter or part of a combination, all characters represent themselves. Not every character is as easily typed on a keyboard, however. For that reason you can also use a couple of traditional escapes and metasymbols in regular expressions.
Character escapes
Metasymbols
Character escapes
|
Item
|
|
Meaning:
|
|
|
\0
|
|
Null character
|
|
|
\a
|
|
Alarm
|
|
|
\b
|
|
Backspace (Only in a character class.)
|
|
|
\e
|
|
Escape
|
|
|
\f
|
|
Form feed
|
|
|
\n
|
|
Newline
|
|
|
\r
|
|
Return
|
|
|
\t
|
|
Tab
|
|
|
Metasymbols |
|
Item
|
|
Matches:
|
|
|
\cX
|
|
A named control character.
For example \cC for control-C, \c[ for ESC and \c? for DEL .
|
|
|
\DDD
|
|
A character specified by using a two- or three-digit octal number.
In Perl (and RegExhibit) the leading 0 is optional for values above 010 . Single digits are always assumed to be a backreference; multiple digits only if there are as many backreferences.
|
|
|
\xHEX
|
|
A character specified by using one or two heximal digits, e.g. \x5E .
You can only use one digit is the next character is not a (possible) heximal digit.
|
|
|
\x{LONGHEX}
|
|
A character specified by using as many heximal digits as you like, \x{211B} .
|
|
|
\N{NAME}
|
|
A named character.
This is not supported by RegExhibit.
|
|
|
|