Hello!
I recently published a new version of my Understanding Python re(gex)? ebook.
This book will help you learn Python Regular Expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises. In addition to the standard library re
, the third-party regex
module is also covered in this book.
Release offers
To celebrate the new release, you can download the PDF/EPUB versions for free till 31-Jan-2025:
Interactive TUI app
I wrote a TUI app to help you solve exercises from this book interactively. See PyRegexExercises repo for installation steps and app_guide.md for instructions on using this app.
See my blog post Python regex cheatsheet for a quick reference.
Web version and GitHub repo
You can read the book online here: https://learnbyexample.github.io/py_regular_expressions/
Visit https://github.com/learnbyexample/py_regular_expressions for markdown source, example files, exercise solutions, sample chapters and other details related to the book.
Feedback and Errata
I would highly appreciate it if you’d let me know how you felt about this book. It could be anything from a simple thank you, rating/review, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn’t!) and so on. Reader feedback is essential and especially so for self-published authors.
Happy learning :)