Discover how to match and validate text using regular expressions, or regexes.
Overview
Syllabus
Introduction
- Write text matching patterns
- What are regular expressions?
- Choose a regular expression engine
- Notation conventions and modes
- Literal characters
- Metacharacters
- The wildcard metacharacter
- Escaping metacharacters
- Other special characters
- Challenge: Characters
- Solution: Characters
- Define a character set
- Character ranges
- Negative character sets
- Metacharacters inside characters sets
- Shorthand character sets
- Challenge: Character sets
- Solution: Character sets
- Repetition metacharacters
- Quantified repetition
- Greedy expressions
- Lazy expressions
- Challenge: Repetition
- Solution: Repetition
- Grouping metacharacters
- Alternation metacharacters
- Efficiency when using alternation
- Challenge: Grouping and alternation
- Solution: Grouping and alternation
- Start and end anchors
- Line breaks and multiline mode
- Word boundaries
- Challenge: Anchors
- Solution: Anchors
- Next steps
Taught by
Kevin Skoglund