Regex in 5 Minutes
Literals, classes, and quantifiers.
A Tiny Language for Patterns
A regular expression is a tiny pattern language for matching text. Instead of one fixed word, you describe the shape of what you want to find.
Python Speaks Regex Too
Python uses the built-in re module for regex. Import it once and you can search, match, and extract patterns from any string.
import re
re.search("cat", "the cat sat")