This is a module from the "Python for Biologists" course. It teaches how to do pattern matching in Python, i.e. how to find a substring (or a set of substrings) in a string. To this aim, it introduces the regular expression syntax, and the tools needed to search regular expressions in biological sequences and in regular text, such as PubMed abstracts. Exercises and suggested solutions are presented in a separate file.