Python re(gex)?

$10+
$10+
learnbyexample
26 ratings

Book details

Scripting and automation tasks often need to extract particular portions of text from input data or modify them from one format to another.

This book will help you learn Python Regular Expressions, a mini-programming language for all sorts of text processing needs.

The book heavily leans on examples to present features of regular expressions one by one. It is recommended that you manually type each example and experiment with them.

Both standard re module and popular third party regex module is covered in this book.

Exercises are also included to test your understanding.


Prerequisites

You should have prior experience working with Python, should know concepts like string formats, string methods, list comprehension and so on.



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



Sample chapters

For a preview of the book, see sample chapters at 

https://github.com/learnbyexample/py_regular_expressions/blob/master/sample_chapters/Python_Regex_sample.pdf


GitHub repo

Visit https://github.com/learnbyexample/py_regular_expressions for code snippets and exercise files. The repo also has solutions for exercises.


Interactive exercises

Based on the book contents as well as the exercises, I made an interactive GUI app with 75 questions on `re.search`, `re.sub`, `re.split` and `re.findall` that'll test your understanding of anchors, alternation, grouping, escaping metacharacters, dot metacharacter, quantifiers, character class, grouping, lookarounds, flags, etc.

  • You'll get PDF and EPUB versions of the book.

  • Length
    113 pages
  • Last Updated
    2021-01-09
  • You'll get PDF and EPUB versions of the book.
  • Length113 pages
  • Last Updated2021-01-09

Ratings

5.0
(26 ratings)
5 stars
96%
4 stars
4%
3 stars
0%
2 stars
0%
1 star
0%
Powered by

Checkout

Python re(gex)?

Enter your info to complete your purchase

Card

You'll be charged US$10.