Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Extracting Data with Capture Groups in Python

via CodeSignal

Overview

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.

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

Reviews

Start your review of Extracting Data with Capture Groups in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.