Pybites Logo

Regular Expressions Learning Path

Regular Expressions badge

Some people, when confronted with a problem, think, "I know, I'll use regular expressions." Now they have two problems. (Jamie Zawinski) - although it doesn't have to be that way in Python. Check out our 10 Tips to Get More out of Your Regexes article and follow up with one or more exercises below. You text manipulation skills will reach new (Ninja) heights. Note that some of the exercises don't require regexes, but you might find them convenient.

Created on: Aug 18, 2019

Bites in this Path:

# Title
1 Strip out vowels and count the number of replacements
2 Validate a license key
3 Parse a bunch of quotes from html
4 Regex fun
5 Regex fun - part ii
6 Social media username validator
7 Strip comments from python code
8 Code a translation fixer
9 Parse an email header
10 Get sentences from a text
11 Regular expression lookahead/lookbehind