PyCon 2016 in Portland, Or
hills next to breadcrumb illustration

Saturday 1:20 p.m.–4:40 p.m.

Regular Expressions

Trey Hunner

Audience level:
Novice
Category:
Python Core (language, stdlib, etc.)

Description

What are regular expressions, what are they useful for, and why are they so hard to read? We'll learn what regular expressions are good for, how to make our own regular expressions, and how to make our regular expressions friendly and readable (yes it's possible, sort of).

Abstract

In this tutorial we will break down the regular expression syntax to better understand how regular expressions work. We will learn how to dissect regular expressions, how to use regular expressions in Python, and how to make your regular expressions more readable. We will learn how to use regular expressions for data validation, data parsing, and data normalization. We will also learn when *not* to use regular expressions.

Student Handout

No handouts have been provided yet for this tutorial