Code snippets, example files and sample chapters are available on GitHub [3]
The book uses plenty of examples to showcase features one by one. BRE/ERE/PCRE(2)/Rust regular expressions are also covered from scratch.
Hope you find the book useful. I would be grateful for your feedback and suggestions.
[1] https://gumroad.com/l/gnugrep_ripgrep