Awesome Regex
Bundle details
Example based guide to mastering Regular Expressions in various programming languages, text editors and command line tools. The bundle includes the following sevenbooks:
- Understanding Python re(gex)? (builtin re and third-party regex modules)
- Understanding JavaScript RegExp
- Understanding Ruby Regexp
- CLI text processing with GNU grep and ripgrep (BRE/ERE, PCRE, Rust regex crate)
- CLI text processing with GNU sed (BRE/ERE)
- CLI text processing with GNU awk (ERE)
- Vim Reference Guide
The above links point to GitHub repos for the respective book. These repos have files used in examples/exercises and other information related to the books.
- Understanding Python re(gex)?, JavaScript RegExp and Ruby Regexp books are solely focused on regular expressions.
- CLI text processing with GNU grep and ripgrep, GNU sed and GNU awk books will help you learn how to use these command line tools from the terminal. The various regex flavors used in these tools are discussed in dedicated chapters/sections with plenty of examples. See my blog post for subtle differences between the BRE/ERE implementations in these tools.
- Vim Reference Guide focuses on the Vim text editor. There's an entire chapter for the Vim regex flavor.
Testimonials
I love your books on regex...As a student from the Digital VLSI space, it is indeed useful now and definitely in the future. It's really well written and really easy to understand the examples — feedback on reddit
Step up your cli fu with this fabulous intro & deep dive into awk. I learned a ton of tricks! — feedback on twitter
Literally was having a mini-breakdown about not understanding Regex in algorithm solutions the other day and now I'm feeling so much better, so thank YOU! I genuinely feel like I'm developing the skill for spotting when and where to use them after so much practice! — feedback on twitter
I consider myself pretty experienced at shell-fu and capable of doing most things I set out to achieve in either bash scripts or fearless one-liners. However, my awk is rudimentary at best, I think mostly because it's such an unforgiving environment to experiment in. These books you've written are great for a bit of first principles insight and then quickly building up to functional usage. I will have no hesitation in referring colleagues to them! — feedback on Hacker News
Hi, great work releasing this! Trying to explain vim concisely is always an interesting challenge and I had a great time reading your attempt in this book. I always find it really interesting on how people try to group certain vim functions in a way that makes sense to people that don't use vim. I think you cover that idea pretty well in your 'Vim philosophy and features' section whilst not making it overly abstract and keeping it relatable. — feedback on Hacker News
Thank you for choosing to write and share your knowledge. I read your books on CLI and sed - I think they are very comprehensive and very well explained. Keep up the great work — feedback on twitter
Bundle cover image created using canva.
You'll get PDF and EPUB versions of all the books.