^
- Start of the line
$
- End of the line
g
- Global
m
- Multiline
i
- Insensitive
s
- Single line
*
- From 0
to infinite
+
- From 1
to infinite
?
- From 0
to 1
{n}
- Exactly n
{n1, n2}
- From n1
to n2
\d
- Digits
\D
- Non digits
\w
- Words
\W
- Non words
\s
- Space and break lines
\n
- New line
\t
- Tab
\udddd
- Unicode (where dddd
is the hexadecimal code for a Unicode character)
.
- Any character
\
- \
character
\.
- .
character
\$
- $
character
\^
- ^
character
|
- "Or" operator
[]
- "Any" operator
[abc]
or (a|b|c)
- Any of a
, b
or c
[a-c]
- Any from a
to c
[^abc]
- Any except a
, b
and c
...