Reuven Lerner's Python Courses/Practice Makes Regexp — complete package

  • $250

Practice Makes Regexp — complete package

Don't fiddle with regexps. Use them effectively.

Overview

Have you ever known a developer who needed to use a regexp to solve a crucial, time-boxed problem, at work? They know that you can get it…if they just add parentheses here. Or a plus sign there. Or a question mark at the end. Or something.

They spend hours fiddling—trying to figure out the proper syntax and searching online and plugging in snippets that may or may not work.

It’s a tedious and time consuming system, and even worse, guarantees that their regexp won’t quite do what they want. No wonder so many people give up before they master regular expressions!

Stop fiddling, and get back to coding


Some developers try to learn regexps via books and websites. But most of those resources just throw some syntax at you, and tell you that you’ll be set. I know from experience that this system doesn’t work (both from when I started to program, to more than a decade of teaching regexps at major high-tech companies around the world). Just as reading a single grammar book won’t teach students a foreign language, developers can’t learn regular expressions from memorizing the syntax alone.

So, how do developers master regexps? They treat it as a language—and then practice, practice, practice.

Once you do practice them, you start to internalize their structure and power. And then you start to see more and more places in which regexps can solve problems, more quickly than you ever imagined.

You can get your own work done faster because you have the right tools to attack the problem, and you line yourself up for good things, like promotions and tackling that side project application you always dreamed of creating.

Get your coding time back


Practice Makes Regexp doesn’t aim to teach developers regular expressions.There are other books and resources for that.

Rather, this course aims to take a fledgling knowledge of regexps, and make regexps fluent and natural! 

Here’s what you get:
  • 50 regexp exercises, solutions, and explanations
  • all in a 175 page ebook
  • With solutions for Python, Ruby, JavaScript, and PostgreSQL

In this version, you'll also get a video explanation, by me, reviewing each of the 50 exercises.  I walk you through the process

Each exercise in Practice Makes Regexp has solutions in Python, Ruby, JavaScript, and PostgreSQL (except for the chapter on the Unix shell, in which solutions are presented for the “grep” command).  No matter which of these languages you use, this course will help you to do your work faster and better, working fluidly with text and extracting precisely what you need. If you have been struggling to use regular expressions in your work, then I believe Practice Makes Regexp is the course that you’ve been waiting for.

Not sure if the book is for you? Or do you need a refresher course in regular expressions?  You can sign up for my "regular expressions crash course," at http://regexpcrashcourse.com/ .

Contents

Book

practice-makes-regexp.epub
practice-makes-regexp.mobi
practice-makes-regexp.pdf

Chapter 4 — Simple regexps

4.1: Find matches (fixed)
4.3: Double f
4.2: Five-letter words
4.4: Extract timestamp

Chapter 5 — Character classes

5.4: IP addresses
5.5: Long, weird words (fixed)
5.6: Matching URLs
5.7: Non-zero hours
5.3: Hexwords
5.1: End-of-sentence words
5.8: Quoted text
5.2: Hex numbers
5.9: Supervocalic
5.10: Double triple vowel

Chapter 6 — Alternation

6.1: Multiple date formats
6.2: "oo" and "ee" words
6.3: British and US spelling

Chapter 7 — Anchoring

7.2: Comment lines
7.1: Capitalized start of line
7.3: Last five letters
7.5: Last two words

Chapter 8 — Groups

8.2: Config pairs
8.1: Date and time
8.4: Prices
8.3: Postfix dollar
8.5: First word from quotes
8.7: "t" but no "ing"
8.6: Question first word
8.9: Beheaded usernames
8.8: Usernames and user IDs
8.10: Final words
8.11: "d" user shells

Chapter 9 — Flags

9.1: All usernames
ex34 - a b c stretches in Alice.mp4
ex36 - a b c extended.mp4
ex35 - a b c stretches, case insensitive.mp4
ex37 - ip addresses from a logfile.mp4

Chapter 10 — Backreferences

10.1: Doubled vowels

Chapter 11 — Replace

ex21.mp4

Chapter 12 — grep

UNIX-disk-space.mp4
Preview
12.2 - All but today.mp4
12.3 Problem logs.mp4
12.4 Old and new Office files.mp4

Slide PDFs

regexp-slides.zip

Solutions to exercises

solutions.zip

Data files

Here are the data files that I use in the book for most of the exercises.
data-files.zip

Become a better developer.

I'm Reuven — and for 20 years, I've spent just about every day teaching Python, data science, and Git at some of the world's best-known companies. 

I've recorded my most popular courses here, for you to learn these skills — even if you don't work for a big company.

After taking my courses, you'll be able to to solve bigger problems in less time — allowing you to do your current job better, or to find a new, better job.

FAQ

What do the videos give me that's not in the book?

First of all, many people prefer to see things demonstrated, rather than just on paper. Think of the difference between reading a book and watching a lecture; both give you information, but the video can be livelier.

Second, I strongly believe that the answer isn't the most important part of what I provide with these exercises.  Rather, the process of getting to an answer is the important thing.  As such, you can more easily see the process in a video than on paper.  That's why the video shows me solving each exercise, step by step, in Python, Ruby, JavaScript, and PostgreSQL — so that you can see how to do the same on your own computer.

Finally, in many cases I took advantage of the opportunity in the video to explore alternative answers and/or interesting things that we can do in and with regexps.  So you will often get a fuller, more interesting answer.

What if I dislike the course?

If you don't think you're getting value from Practice Makes Regexp, then ask for a refund, and I'll give you one.