Regular Expressions Tutorial
1.0
  • Regex Cheat Sheet
  • Exercises
  • The Basics
  • Regular Expressions Module
  • Advanced Features
  • Substitutions

Trey Hunner is a Python trainer. He also hosts free video chats about Python.

Regular Expressions Tutorial

PyCon 2016 Regular Expressions Tutorial¶

This tutorial teaching regular expressions in Python was taught by Trey Hunner at PyCon 2016. Trey hosts Weekly Python Chat and provides specialized Python training services.

The Exercises page lists all exercises and all instructions for writing and testing the exercises. Feel free to consult the Regex Cheat Sheet when solving the exercises.

Video¶

The video for the first 100 minutes of the tutorial can be found as Regular Expressions - PyCon 2016 on YouTube. Unfortunately the last 60 minutes of video were lost by the AV team.

You can watch the complete 3 hour workshop in the Regular Expressions Webinar I hosted shortly before PyCon.

Contents¶

  • Regex Cheat Sheet
    • Regex Syntax
    • Python
  • Exercises
    • Validation Exercises
    • Search Exercises
    • More Regular Expression Exercises
    • Capture Exercises
    • Substitution Exercises
    • Lookahead Exercises
  • The Basics
    • Raw Strings
    • Searching
    • Character Class
    • Anchors
    • Metacharacters
    • Quantifiers
    • Validation Exercises
  • Regular Expressions Module
    • Special Sequences
    • Word Boundaries
    • Repeats
    • Case Sensitivity
    • Verbose Flag
    • Searching
    • Grouping
    • Capture Groups
    • Multi-search
    • Uncapturing Groups
    • Search Exercises
  • Advanced Features
    • Alternations
    • Split
    • Compiled
    • Greediness
    • More Regular Expression Exercises
  • Substitutions
    • Basic Substitution
    • Normalization
    • Using Captures in Substitutions
    • Using Captures
    • Capture Exercises
    • Named Capture Groups
    • Substitution Functions
    • Substitution Exercises
    • Lookahead
    • Negative Lookahead
    • Lookahead Exercises
Next

© Copyright 2016, Truthful Technology, LLC.

Built with Sphinx using a theme provided by Read the Docs.