Regular expressions¶
This guide covers pattern matching with Python's re module: syntax, quantifiers, character classes, groups, flags, and practical patterns for extracting data from text.
Coming soon
This guide is awaiting migration into Agilearn. The archived version remains available at accuser.dev/regex-with-python.
What will be here¶
Learn — your first pattern, character classes and quantifiers, groups and capturing, find-and-replace.
Recipes — extracting data from text, validating email addresses, using regex with file I/O, avoiding common mistakes.
Reference — re module, regex syntax, flags.
Concepts — why regular expressions; understanding the regex engine.