Character | Description |
\f | Form feed |
\n | Newline |
\r | Carriage return |
\t | Tab |
\v | Vertical tab |
\/ | Forward slash (/) |
\\ | Backward slash (\) |
\. | Period (.) |
\* | Asterisk (*) |
\+ | Plus (+) |
\? | Question Mark (?) |
\| | Horizontal bar (|) |
\( | Left parenthesis ( |
\) | Right parenthesis ) |
\[ | Left bracket ([) |
\] | Right bracket (]) |
\{ | Left curly brace ({) |
\} | Right curly brace (}) |
\XXX | ASCII character represented by the octal number XXX |
\xHH | ASCII character represented by the hexadecimal number HH |
\cX | The control character represented by X |
26.1.Introduction | ||||
26.1.1. | Pattern Matching | |||
26.1.2. | Defining Patterns | |||
26.1.3. | All the characters that require a backslash character to be taken literally within a pattern. | |||
26.1.4. | Pattern Attributes | |||
26.1.5. | Testing for Pattern Matches | |||
26.1.6. | The pattern matching methods in the RegExp object require String objects. |