Learn Python Regular Expressions step by step from beginner to advanced levels with 200+ examples
The book also includes exercises to test your understanding, which is presented together as a single file in this repo - Exercises.md
You can download the book from https://leanpub.com/py_regex
- Preface
- Why is it needed?
- Regular Expression modules
- Anchors
- Alternation and Grouping
- Escaping metacharacters
- Dot metacharacter and Quantifiers
- Working with matched portions
- Character class
- Groupings and backreferences
- Lookarounds
- Flags
- Unicode
- Miscellaneous
- Gotchas
- Further Reading
- Open an issue for suggestions, bugs, typos, etc
The code snippets are licensed under MIT, see LICENSE file