The book covers both 're' and 'regex' modules, has plenty of examples and chapters also have cheatsheets and exercises.
Code snippets, exercises, sample chapters, etc are available on GitHub repo [3]
I used pandoc+xelatex [4] to generate the pdf.
[1] https://gumroad.com/l/py_regex
[2] https://leanpub.com/py_regex
[3] https://github.com/learnbyexample/py_regular_expressions
[4] https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/