Lesson


Patterns
abc123
\d
\D
\w
\W
\s
\S
{x}
{x,y}
[xyz]
[a-z]
x|y
(xyz)
.
*
?
+
Digits/letters
Any digit
Any non-digit
Alphanumeric
Non-alphanumeric
Any whitespace
Any non-whitespace
Exactly x times
x to y times
x, y, or z
Character range
x or y
Group
Any character
0 or more characters
0 or 1 characters
1 or more characters