Pybites Logo

← Back

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:

Regex fun
Regex fun - part ii
Strip out vowels and count the number of replacements
Social media username validator
Strip comments from python code
Parse a bunch of quotes from html
Code a translation fixer
Validate a license key
Parse an email header
Get sentences from a text
Regular expression lookahead/lookbehind