December 2018
Beginner to intermediate
668 pages
15h 30m
English
Here are some example regular expressions:
|
Expression |
Meaning |
|
\d |
A single digit somewhere in the input |
|
a |
The a character somewhere in the input |
|
Bob |
The word Bob somewhere in the input |
|
^Bob |
The word Bob at the start of the input |
|
Bob$ |
The word Bob at the end of the input |
|
^\d{2}$ |
Exactly two digits |
|
^[0-9]{2}$ |
Exactly two digits |
|
^[A-Z]{4,}$ |
At least four uppercase letters only |
|
^[A-Za-z]{4,}$ |
At least four upper or lowercase letters only |
|
^[A-Z]{2}\d{3}$ |
Two uppercase letters and three digits only |
|
^d.g$ |
The letter d, then any character, and then the letter g, so it would match both dig and dog or any single character between the d and g |
Read now
Unlock full access