You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note** Please use a valid e-mail and save the mail you receive, you'll get free updates for future versions.
26
26
27
-
Code snippets, example files, sample chapters, etc are available on GitHub: https://github.com/learnbyexample/learn_gnugrep_ripgrep
27
+
Code snippets, example files, sample chapters, etc are available on GitHub: [https://github.com/learnbyexample/learn_gnugrep_ripgrep](https://github.com/learnbyexample/learn_gnugrep_ripgrep)
28
28
29
-
This book covers features of `GNU grep` and `ripgrep` along with discussion on BRE/ERE/PCRE(2)/Rust `regular expressions`. Examples are used extensively, please follow along by typing them out. Exercises are also included to test your understanding.
29
+
This book covers features of `GNU grep` and `ripgrep` along with discussion on BRE/ERE/PCRE(2)/Rust **regular expressions**. Examples are used extensively, please follow along by typing them out. Exercises are also included to test your understanding.
30
30
31
31
Some of you might be familiar with my [Command Line Text Processing](https://github.com/learnbyexample/Command-line-text-processing) repo. This book is based on the `grep` chapter - edited to add more descriptions, better examples, exercises, etc. Also, I took the plunge and checked out `ripgrep` while working on this book. I'd assumed it would be similar to `gnu grep` and I just need simple changes to present it in the book. Well, it turned out lot more work and I had to settle for not covering all the options and customizations. In hindsight, would've been better if I did a separate book. Speed wise, `ripgrep` is very impressive and has plenty of additional nice features. For example: the multiline `-U` and replace `-r` options of `ripgrep` are quite handy - you can use this instead of `sed` for some cases with added advantage of speed, `-F` option and better regex features.
32
32
@@ -44,9 +44,7 @@ Some of you might be familiar with my [Command Line Text Processing](https://git
44
44
* ripgrep
45
45
* Further Reading
46
46
47
-
Hope you find the book useful. I would be grateful for your feedback, book review and suggestions.
47
+
Hope you find the book useful. I would be grateful for your feedbackand suggestions ([twitter](https://twitter.com/learn_byexample), [goodreads](https://www.goodreads.com/book/show/47406700-gnu-grep-and-ripgrep)).
48
48
49
49
Happy learning :)
50
50
51
-
**PS** To celebrate the release, I'm also offering my e-book on **Python regular expressions** for half the price during the offer period. Use these coupon links [gumroad](https://gumroad.com/l/py_regex/halfprice) or [leanpub](https://leanpub.com/py_regex/c/P7erPYAm1386) to get it.
Code snippets, example files, sample chapters, etc are available on GitHub: [https://github.com/learnbyexample/py_regular_expressions](https://github.com/learnbyexample/py_regular_expressions)
26
+
27
+
This book covers both `re` module and the third-party [regex](https://pypi.org/project/regex/) module. Examples are used extensively, please follow along by typing them out. Exercises are included to test your understanding and chapters have cheatsheets for easy reference.
28
+
29
+
**Table of Contents**
30
+
31
+
* Preface
32
+
* Why is it needed?
33
+
* Regular Expression modules
34
+
* Anchors
35
+
* Alternation and Grouping
36
+
* Escaping metacharacters
37
+
* Dot metacharacter and Quantifiers
38
+
* Working with matched portions
39
+
* Character class
40
+
* Groupings and backreferences
41
+
* Lookarounds
42
+
* Flags
43
+
* Unicode
44
+
* Miscellaneous
45
+
* Gotchas
46
+
* Further Reading
47
+
48
+
I plan to add more content to the book in future and hopefully create an interactive course. Currently the book is licensed under [cc-by-nc-sa](https://creativecommons.org/licenses/by-nc-sa/4.0/) with code snippets under [MIT](https://github.com/learnbyexample/py_regular_expressions/blob/master/LICENSE) and I'll probably add the source files to the repo sometime in the future. I'm generating the PDF using [pandoc+xelatex](https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc). I plan to create an epub version too and possibly put the book on Amazon Kindle.
49
+
50
+
Hope you find the book useful. I would be grateful for your feedback and suggestions ([twitter](https://twitter.com/learn_byexample/status/1159676706224873472), [goodreads](https://www.goodreads.com/book/show/47142552-python-re-gex)).
0 commit comments