Go beyond simple matching and learn to pull specific data out of text. You'll use capture groups to parse structured information, find repeated patterns, and perform powerful text transformations. This course will equip you to clean, reformat, and extract valuable data from any string with precision.
Overview
Syllabus
- Unit 1: Capturing with Named Groups
- Extracting Log Entry Data
- Writing Your Own Named Group Pattern
- Refactoring the Credential Parser
- Building a GPS Coordinate Parser
- Unit 2: Backreferences for Pattern Matching
- The Malfunctioning Word Checker
- Extracting BBCode Tag Content
- Finding Symmetrical Word Patterns
- Making Patterns More Robust
- Unit 3: Practical Extraction Patterns
- Capturing Social Media Handles
- Isolating Email Domains
- Extracting Domains from Full URLs
- Multi-Currency Price Extraction
- Unit 4: Transforming Text with re.sub
- Converting Historical Date Formats
- Creating Labels from Product SKUs
- Creating Anonymous Identifiers from Names