Python Regex Reference
Regex Basics Tutorial
For vast majority of uses, you want the
For writing code using Object Oriented style.
Python Regex Flags
Options for regex methods that change regex pattern's meaning.
Regex Match Objects
Some function or method return their result as object called “MatchObject”.
Regex Pattern Syntax
Notes and References
Note: This document was originally a rewrite of Python 2.4's Official Documentation of its RE module (
http://python.org/doc/2.4/lib/module-re.html), strictly following its style and format. It was written in 2005. However, it has since been rewritten as independent tutorial and reference. For detail, see: Notes on Rewriting Python Regex Documentation
If you have a question, put $5 at patreon and message me.