| \ | general escape character with several uses |
| ^ | assert start of subject (or line, in multiline mode) |
| $ | assert end of subject or before a terminating newline (or
end of line, in multiline mode) |
| . | match any character except newline (by default) |
| [ | start character class definition |
| ] | end character class definition |
| | | start of alternative branch |
| ( | start subpattern |
| ) | end subpattern |
| ? |
Introduces a special construct, such as a non-capturing group, a named
subpattern, an assertion or an option setting, if used as the first
character after (.
If used as a quantifier it is the optional quantifier (equivalent to {0,1}).
It also transforms greedy quantifiers into lazy quantifiers
(see repetition).
|
| * | 0 or more quantifier |
| + | 1 or more quantifier |
| { | start min/max quantifier |
| } | end min/max quantifier |