Understanding Python re(gex)? book announcement
Hello!
I just 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. The standard library re
as well as the third-party regex
module are covered in this book.
Release offers🔗
To celebrate the new release, you can download the PDF/EPUB versions of Understanding Python re(gex)? for FREE till 31-Jan-2025.
Here are some more amazing offers:
- All 13 books bundle is $18 (normal price $36) — Leanpub or Gumroad
- 100 Page Python Intro is FREE (normal price $10) — Leanpub or Gumroad
See also my blog post on how to customize
pandoc
for generating beautiful PDF/EPUB versions from GitHub style markdown.
What's new?🔗
- Python version updated to 3.13
- deprecated features, SyntaxWarning, name change from
re.error
tore.PatternError
- deprecated features, SyntaxWarning, name change from
- Corrected typos, updated descriptions, timing results and external links
- Exercises are now numbered instead of using alphabets
Videos🔗
Check out my programming tips covering Python, command line tools and Vim:
re(gex)? playground🔗
To make it easier to experiment, I wrote on an interactive app. See PyRegexPlayground repo for installation instructions and usage guide. A sample screenshot is shown below:
re(gex)? exercises🔗
I wrote another 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. Here's a sample screenshot:
See my blog post Python regex cheatsheet for a quick reference.
Table of Contents🔗
- Preface
- Why is it needed?
- re introduction
- Anchors
- Alternation and Grouping
- Escaping metacharacters
- Dot metacharacter and Quantifiers
- Interlude: Tools for debugging and visualization
- Working with matched portions
- Character class
- Groupings and backreferences
- Interlude: Common tasks
- Lookarounds
- Flags
- Unicode
- regex module
- Gotchas
- Further Reading
Web version🔗
You can read the book online here: https://learnbyexample.github.io/py_regular_expressions/
GitHub repo🔗
Visit https://github.com/learnbyexample/py_regular_expressions for markdown source, example files, exercise solutions, sample chapters and other details related to the book.
Newsletter🔗
Subscribe to learnbyexample weekly — free newsletter covering programming resources, updates on what I am creating, tools, free ebooks and more, delivered every Friday.
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.
You can reach me via:
- Issue Manager: https://github.com/learnbyexample/py_regular_expressions/issues
- E-mail:
learn by example.net@gmail.com
(without the spaces) - Twitter: https://twitter.com/learn_byexample
Happy learning :)