REGULAR EXPRESSION |
DESCRIPTION |
---|---|
. (dot) |
Any character (byte) except newline |
x |
The character 'x' |
\\ |
The character '\' |
\a |
The alert (bell) character (ASCII 0x07) |
\b |
|
\f |
The form-feed character (ASCII 0x0C) |
\n |
The newline (line feed) character (ASCII 0x0A) |
\r |
The carriage-return character (ASCII 0x0D) |
\t |
The normal (horizontal) tab character (ASCII 0x09) |
\v |
The vertical tab character (ASCII 0x0B) |
\n |
The character with octal value 0n (0 <= n <= 7) |
\nn |
The character with octal value 0nn (0 <= n <= 7) |
\mnn |
The character with octal value 0mnn (0 <= m <= 3, 0 <= n <= 7) |
\xhh |
The character with a hexadecimal value 0xhh, for example, \x20 means the space character |
If your expression includes the characters \ | ( ) { } [ ] . ^ $ * + or ?, you must escape them by using a \ immediately before the character. Otherwise, they will be assumed to be regular expression operators rather than literal characters.