Skip to content

Commit 090ddb8

Browse files
updates on grep and python regex books
1 parent da29ff4 commit 090ddb8

File tree

2 files changed

+60
-9
lines changed

2 files changed

+60
-9
lines changed

_posts/2019-05-16-grep-book-announcement.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ date: 2019-05-16T16:46:01
1212

1313
Hello!
1414

15-
I recently published my book on **GNU GREP and RIPGREP** and it is free to download till 19-May-2019! You can still pay if you wish :)
15+
I recently self-published my third book, this one is about **GNU GREP and RIPGREP**.
1616

1717
![grep cover image]({{ '/images/books/grep.png' | absolute_url }}){: .align-center}
1818

1919
Get the e-book using either of these sites:
2020

21-
* https://gumroad.com/l/gnugrep_ripgrep
22-
* https://leanpub.com/gnugrep_ripgrep
23-
* https://www.instamojo.com/learnbyexample/gnu-grep-and-ripgrep
21+
* [https://gumroad.com/l/gnugrep_ripgrep](https://gumroad.com/l/gnugrep_ripgrep)
22+
* [https://leanpub.com/gnugrep_ripgrep](https://leanpub.com/gnugrep_ripgrep)
23+
* [https://www.instamojo.com/learnbyexample/gnu-grep-and-ripgrep](https://www.instamojo.com/learnbyexample/gnu-grep-and-ripgrep)
2424

2525
**Note** Please use a valid e-mail and save the mail you receive, you'll get free updates for future versions.
2626

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

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.
3030

3131
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.
3232

@@ -44,9 +44,7 @@ Some of you might be familiar with my [Command Line Text Processing](https://git
4444
* ripgrep
4545
* Further Reading
4646

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 feedback and suggestions ([twitter](https://twitter.com/learn_byexample), [goodreads](https://www.goodreads.com/book/show/47406700-gnu-grep-and-ripgrep)).
4848

4949
Happy learning :)
5050

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.
52-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "Example driven book on Python regular expressions"
3+
categories:
4+
- ebook
5+
tags:
6+
- python
7+
- regular-expressions
8+
- re-module
9+
- regex-module
10+
date: 2019-08-09T19:52:04
11+
---
12+
13+
Hello!
14+
15+
I recently updated my book titled **Python re(gex)?** and it is free to download till 11-Aug-2019! You can still pay if you wish :)
16+
17+
![pyregex cover image]({{ '/images/books/pyregex.png' | absolute_url }}){: .align-center}
18+
19+
Get the ebook using either of these sites:
20+
21+
* [https://gumroad.com/l/py_regex](https://gumroad.com/l/py_regex)
22+
* [https://leanpub.com/py_regex](https://leanpub.com/py_regex)
23+
* [https://www.instamojo.com/learnbyexample/python-regex/](https://www.instamojo.com/learnbyexample/python-regex/)
24+
25+
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)).
51+
52+
Happy learning :)
53+

0 commit comments

Comments
 (0)