Introduction to Regular Expressions
Learn to read and write regular expressions from scratch: literals, character sets, shorthand classes, word boundaries, flags, repetition, greedy versus lazy matching, anchors, groups and alternation, with every pattern checked in both JavaScript and Python.
- Beginner level
- 2 modules
- 15 lessons
- 68 quiz questions
Syllabus
01Matching CharactersDescribe single characters: plain text, the wildcard, sets and ranges, shorthand classes, word boundaries and the flags that change how a pattern is applied.7 lessons
02Repetition and StructureRepeat, anchor and combine pieces: counted and open-ended quantifiers, greedy versus lazy, anchors, groups with captures, alternation, using regexes in code, and a capstone.8 lessons