Friday 10:50 a.m.–11:20 a.m.

Introduction to Regular Expressions

Luke Sneeringer

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

Description

Many developers, including quite a few experienced developers, are absolutely confounded by regular expressions. However, regular expressions aren't as difficult as many believe. In this talk, I will teach regular expressions by starting with the simple and moving toward the complex, so that you too can read and write regular expressions like a hero.

Abstract

I will teach regular expressions by starting with the simple building blocks and moving toward the complex, which will give an understanding of how these various aspects of a well-formed regular expression work together to match (or not match) text. This talk will cover: character classes, repetition, string and word boundaries, and referencing all or part of a match for use later.