My book on Python Regular Expressions is free to download this weekend. You can still pay if you wish :)
e-book[1] (you will continue to get free updates in future, you'll need to opt-in to get notification via e-mail)
github[2]
This book would help you learn regular expressions step by step with 200+ examples, from basics to advanced levels. In addition to re module that comes with standard library, the 3rd party regex module is covered as well. Exercises are also included to test your understanding.
Table of Contents
1. Preface
2. Why is it needed?
3. Regular Expression modules
4. Anchors
5. Alternation and Grouping
6. Escaping metacharacters
7. Dot metacharacter and Quantifiers
8. Working with matched portions
9. Character class
10. Groupings and backreferences
11. Lookarounds
12. Flags
13. Unicode
14. Miscellaneous
15. Gotchas
16. Further Reading
Hope you find the book useful. I would be grateful for your feedback and suggestions.
Happy learning :)
[1] https://leanpub.com/py_regex/c/P7erPYAm1386
[2] https://github.com/learnbyexample/py_regular_expressions