Quick reference
Regex Cheat Sheet
A compact reference to use while practicing.
| . | Any character |
| [abc] | One of the listed characters |
| [^abc] | A character not in the list |
| [A-Z] | Uppercase letter from A to Z |
| \d | Digit |
| \w | Word character |
| \s | Whitespace |
| + | One or more occurrences |
| * | Zero or more occurrences |
| ? | Zero or one occurrence |
| {3} | Exactly three occurrences |
| {2,5} | Between two and five occurrences |
| ^ | Start of string/line |
| $ | End of string/line |
| (...) | Group |
| | | Alternation |
| \. | Literal dot |
Try it now
Open the playground to try the symbols or jump straight into the missions.