| Character | Description |
| \ | Marks the next character as a special character, literal, backreference, or octal escape |
| ^ | Locates at the beginning of the input string |
| $ | Locates at the end of the input string |
| * | 0 or more occurrences of the preceding character or subexpression |
| + | + Find one or more preceding character or subexpression |
| ? | ? 0 or 1 preceding character or subexpression |
| {n} | Repeat the previous letter as many as n |
| {n, m} | Repeat the previous letter by the number between n and m |
| . | Find all characters except New line |
| (pattern) | Check the pattern and save the checked value as a variable |
| (?:pattern) | Checks the pattern and does not save the checked value as a variable |
| (?=pattern) | The search string is found at the position where the pattern matching string starts. |
| (?!pattern) | Finds a search string at the beginning of a string that does not match the pattern |
| x|y | Find x or y |
| [xyz] | Find one of the parenthesized characters |
| [^xyz] | Finds characters excluding parenthesized characters |
| [a-z] | Find the specified range of characters |
| [^a-z] | Finds characters except the specified range of characters |
| \b | Find the position between word and space |
| \B | Find all but \ b |
| \cx | Find control characters denoted by x |
| \d | Find number |
| \D | Find non-numeric characters |
| \f | Find paper feed character |
| \n | Find newline character |
| \r | Finds a carriage return character |
| \s | Find all whitespace characters, including spaces, tabs, and paper feeds |
| \S | Find non-whitespace characters |
| \t | Find tab characters |
| \v | Vertical tab character found |
| \w | Find all characters including underscores |
| \W | Non-word character found |
| \xn | Find n (n is a hexadecimal escape value) |