Reference: Regular expressions¶
Quick-lookup pages. Short, dense, and designed to skim — the sort of thing you keep open in a tab while you're stitching a pattern together. If you're here to learn regex for the first time, start with Learn instead.
Pages in this section¶
remodule quick reference — the functions and methods you actually use, with their signatures and return types.- Regex syntax reference — every metacharacter, character class, anchor, and quantifier in one place.
- Regex flags reference —
re.IGNORECASE,re.MULTILINE,re.DOTALL, and the rest, with what they actually change.