learnbyexample

joined 2 years ago
 

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 :)

You're welcome, happy learning :)

I'm self-published and haven't worked for other publications. Sometimes, my submissions reach HN front page, so you might have seen there or because others picked it up from there and shared around elsewhere.

[–] learnbyexample@programming.dev 22 points 1 year ago* (last edited 1 year ago)

As per the manual, "Mappings are set up to work like most click-and-type editors" - which is best suited with GUI Vim.

While Vim doesn't make sense to use without the modes, there are plugins like https://github.com/tombh/novim-mode!

[–] learnbyexample@programming.dev 5 points 1 year ago (1 children)

I had to learn Linux CLI tools, Vim and Perl at my very first job. Have a soft spot for Perl, despite not using it much these days other than occasional one-liners (mainly for advanced regex features).

Thanks a lot for the kind words! Means a lot to me :)

I'm a bit active on book-related forums. I post reviews of books I've read, give book recommendations, etc. In this case, the author contacted me based on my reviews.

[–] learnbyexample@programming.dev 2 points 1 year ago (2 children)

Like alpha, beta, gamma readers. Used by authors to get feedback at various stages of their book before it is published. Alpha stage is very rough, like first draft. Not sure where the line lies between beta and gamma stage, but they are close to finished works - only typos and minor changes would be made based on reader feedback.

For indie authors, beta readers often help to get a few reviews out close to book publication.

[–] learnbyexample@programming.dev 2 points 1 year ago (4 children)

I'm doing a beta-read. Well written, great ideas, etc. Unfortunately, the book is turning out to be much darker than I'm comfortable with. I'll probably try to get to the halfway point before deciding to give up.

Bobiverse by Dennis E. Taylor is a fun and easy read

See also: https://github.com/pllk/cphb (Competitive Programmer's Handbook)

[–] learnbyexample@programming.dev 3 points 2 years ago (1 children)

Stormlight Archives can be daunting to those not familiar with Sanderson's works, especially since the books are long (1000+ pages) and the first book is setting up a long 10-book series (plus other stuff from a wider universe).

If you'd like something smaller and standalone to try first, check out "Emperor's Soul" (novella) or Warbreaker (novel).

view more: ‹ prev next ›