ARE YOU SPENDING TOO MUCH TIME FIDDLING WITH REGULAR EXPRESSIONS?

Regular expressions are incredibly useful: They let you search through huge quantities of text, extracting only the things that are useful to you.

For decades, programmers have used regular expressions to examine logfiles, retrieve portions of user input, and replace text that follows complex rules.

Indeed, in many cases, regexps can be a real life saver.

Need to figure out if certain types of private information are in your logfiles? Or handle input from poorly written APIs, whose contents vary from release to release? Or find out which disks are close to filling up?

These are the sorts of problems that regexps can solve quickly, easily, and elegantly.

matching-url

SO WHAT'S NOT TO LIKE ABOUT REGULAR EXPRESSIONS?

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!

HOW DO YOU GET BACK YOUR CODING TIME?

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.

There’s no substitute for practice when it comes to regular expressions.

Moreover, 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.

SO, ARE YOU READY TO START PRACTICING & GET YOUR CODING TIME BACK?

practice-makes-regexp

PRACTICE

makes

REGEXP

THE NEW COURSE TO HELP DEVELOPERS REDUCE CODING TIME BY MASTERING REGULAR EXPRESSIONS

practice-makes-regexp

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...
  • in PDF, ePub and .mobi formats
  • With additional solutions for Python, Ruby, JavaScript, and PostgreSQL

Plus, for higher packages...

  • Data files for each exercise
  • Separate solution files in Python, Ruby, JavaScript, and PostgreSQL, organized by chapter and language
  • 300 slides from a 2-day regexp course
  • Most impressively: The best five hours of regular expressions screencasts you'll find online!

BOOK PREVIEW

SCREENCAST #1

 

This course's primary goal is to help developers master regexps, so that they can use them in their work with speed and confidence.

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? - Get five FREE exercises

If you're a developer who isn't sure whether the exercises in Practice Makes Regexp will be helpful (or maybe that they'll be too hard), sign up & I'll send you five free exercises from the book.

FEEDBACK FROM REUVEN LERNER'S LAST BOOK

Practice Makes Python

practice-makes-python

Growing up in Michigan, with a desire—but little opportunity to swim, I read a book about swimming when I was about 11 or 12 years old. However, reading that book—as good as it was—did not teach me to swim.

Our family then moved to Phoenix, Arizona where there were many large public swimming pools. Suddenly my opportunities to swim dramatically increased.

I decided to simply copy someone in the pool who was swimming, and before long I was swimming as well! Thus, I claim the only way to learn to swim is to swim, and better yet, to learn by watching someone who has been swimming for some time.

Reuven Lerner's great book, Practice Makes Python (PMP), is one of the best ways I know of to learn to swim in the world of Python coding fluency.

I have now done about 40 of the exercises in the book. It is clear that Reuven knows how to swim. Reading his exercise challenges, trying to write my own solutions, or glancing at Reuven’s solution to get ideas, but still writing my own solutions, has been a practical technique to greatly improve my Python fluency. It is working for me!
—Jim Davidson

Kennewick, Washington
November 18, 2015

A MESSAGE FROM THE AUTHOR

 

WHAT MAKES PRACTICING SO SPECIAL?

I’m Reuven Lerner, a software developer with more than 20 years of experience working with regexps.

For more than 10 years, I have taught regexps to hundreds of people in the United States, Europe, Israel, and China. Companies such as Apple, Cisco, HP, SANDisk, and VMWare invite me back again and again to teach their staff.

I'm also the author of Practice Makes Python, a best-selling book of Python exercises, similar to the structure of my new book—Practice Makes Regexps.

I first learned regexps more than 20 years ago when I was using the Perl programming language.

But that was my second time trying to learn regexps...

My first attempt was an utter failure, because I didn’t understand what the regexps were meant to do, or how the different metacharacters and capabilities fit with each other.

To correct the types of issues I had when starting out, the exercises in this book draw on my decades of experience using regexps to solve real problems, and the mistakes I made.

Plus, this course (and all of my teaching), is informed by my experiences as a programmer, a writer, a lecturer, as well as my PhD in learning sciences.

I have studied how people learn, individually and in groups, and apply that knowledge in my courses and my writing.

If you solve these exercises, I hope that you’ll gain the insights that took me 20 years—but much more quickly.

If you are already using regexps at work, then you’ll use them more intelligently, with a deeper understanding.

And if you were hoping to master a language like Python, then this course (especially the screencasts included with the biggest package) will give you the skills you need to do so.

These exercises are based on my many times teaching regular expressions to programmers around the world.

I’ve seen what works (and what doesn’t), and I aim for the exercises to be interesting and fun, as well as useful.

Again: This course isn’t for everyone. It assumes that you have already learned something about regular expressions from another course or book.

However, it also assumes that even after learning the basics of regular expressions, you’re still finding it hard to apply them in your day-to-day work.

This course is designed to take someone who, kind of, sort of knows regular expressions, but needs help to become a regexp master.

practice-makes-regexp

FEEDBACK FROM REUVEN LERNER'S LAST BOOK

Practice Makes Python

practice-makes-python

Hi Dr. Lerner,

I just wanted to let you know that I finished all of the exercises in your book, Practice Makes Python. They are all fantastic, and going through them has provided tremendous value for me!

I've mostly been writing imperative (scripting) code, with a few functions here and there (I work as a Data Scientist), so the "Objects" and "Iterators and Generators" chapters tripped me up, mostly due to me not being aware of methods like __str__(), __iter__() and next() at all.

(Actually, I never even knew iterators were objects - serves me right for just learning Python from tutorials and beginner's books, and then just hacking away.)

Otherwise, I found all the exercises very well put-together, with good explanations of what was expected as a result of the code.

I'm looking forward to your next problem book on regexp!

All the best,
S.

FREQUENTLY ASKED QUESTIONS

Who is this course for?

This course isn’t for everyone; it assumes that you have already learned something about regular expressions from another course or book.

However, it also assumes that even after learning the basics of regular expressions, you’re finding it hard to apply them in your day-to-day work.

This course is designed to take someone who, kind of, sort of knows regular expressions, and help them to become a regexp master.

What format does the book come in?

Three formats: PDF, Mobi, and ePub.

Is the ebook DRM protected?

No, it is not. All three formats (PDF, Mobi, and ePub) are DRM-free.

Do you offer special group and site-license pricing?

Yes, absolutely, assuming that you wish to buy at least 10 copies. Please contact me at reuven@lerner.co.il, and I will be happy to provide you with pricing and licensing information.

I am an instructor, and would like to license the ebook for my classes. Do you offer special pricing for such use?

Yes. Please contact me at reuven@lerner.co.il, and we can discuss pricing and licensing.

LIVE Q&A

 

CHOOSE A PACKAGE

Screencasts + Workbook + Data & Solution Files + Exclusive Presentation

$500
  • 50 screencasts (five hours of video) of me explaining each regexp solution
  • 200-page workbook, with 50 exercises, solutions, and explanations
  • Data files for the exercises
  • Solution files in Python, Ruby, JavaScript, and PostgreSQL, organized by chapter and language
  • 300 slides from my 2-day, exclusive regexp course
  • Book updates as they are released
  • Video updates as they are released
  • Slide updates as they are released
  • 60-day money-back guarantee*
  • Buy now

Workbook Only

$39
  • 200-page workbook, with 50 exercises, solutions, and explanations
  • Supporting files
  • Book updates as they are released
  • 60-day money-back guarantee*
  • Buy now

practice-makes-regexp

*REFUND INFORMATION

I offer a 60-day money-back guarantee. In fact, I refunded my first customer.

He originally bought the book, and sent me email saying, "I'm not a happy customer. I cannot download the files for the book."

It turns out that I had forgotten to upload the Consultant Package to Gumroad.

So I quickly refunded this customer, uploaded the missing files, and double-checked everything was finally in order.

Also, to compensate him for his frustration, I sent the customer a personal coupon code for 15% off, and let him know that I really appreciated him finding this bug (I figured that, if nothing else, he was helping make the book significantly better).

Surprisingly, he immediately repurchased the book, and quickly emailed a thank you—telling me that he's now a happy customer.

* * * * *

Besides him, I don't think that I've ever had any refunds for any of my books.

Regardless: If you're not completely happy with your purchase, I'll happily refund your entire purchase.

Not sure if the book is for you? - Get five FREE exercises

If you're a developer who isn't sure whether the exercises in Practice Makes Regexp will be helpful (or maybe that they'll be too hard), sign up & I'll send you five free exercises from the book.