1Char Description Meaning
2\ Backslash Used to escape a special character
3^ Caret Beginning of a string
4$ Dollar sign End of a string
5. Period or dot Matches any single character
6| Vertical bar or pipe symbol Matches previous OR next character/group
7? Question mark Match zero or one of the previous
8* Asterisk or star Match zero, one or more of the previous
9+ Plus sign Match one or more of the previous
10( ) Opening and closing parenthesis Group characters
11[ ] Opening and closing square bracket Matches a range of characters
12{ } Opening and closing curly brace Matches a specified number of occurrences of the previous
1regex = / a/; // match a bell or alarm
2regex = / e/; // matches an escape
3regex = / f/; // matches a form feed
4regex = / n/; // matches a new line
5regex = / Q…E/; // ingnores any special meanings in what is being matched
6regex = / r/; // matches a carriage return
7regex = / v/; // matches a vertical tab