Regular expressions (often called "regex" or "regexes") are a miniature special-purpose programming language that lives inside Python.
Regular expressions use a very similar syntax in many programming languages: JavaScript, Ruby, Perl, PHP, and many more.
Regular expressions can seem quite cryptic and quite terse because every character in a regular expression represents a whole statement and regular expressions are usually written without whitespace or comments.
Need to fill-in gaps in your Python skills?
Sign up for my Python newsletter where I share one of my favorite Python tips every week.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.