Regular Expressions Cookbook

Author: Jan Goyvaerts, Steven Levithan
4.5
All Comments
TopTalkedBooks posted at August 20, 2017

Also, does anyone have a very simple tutorial like RegEx for Dummies? Is it strange that I code in C++ but cannot grasp RegEx easily?

No, it's not strange. Regex mastery requires a certain mindset that doesn't come naturally. And being able to program, in C++ or any other language, doesn't seem to help--if anything, it's a handicap. There's a good tutorial here, but even the best tutorial will only get you to a pidgin level. If you really want to get your head around regexes, you need The Book.

Another problem is that there's no standard for regexes; every programming language, every framework, every IDE or text editor seems to have its own "flavor" of regex. Some have features that others don't, while some use different syntax to do the same things. That's where The Other Book comes in. Many examples of the kinds of tasks we commonly use regexes for, in several of the most popular flavors, and thoroughly explained.

TopTalkedBooks posted at August 20, 2017

Answering the second part of your question:

As far as books are concerned, Regular Expression Cookbook by O'Reilly is fantastic. The first few chapters pretty much cover all the basics, and then some. The rest of the book is concrete examples.

TopTalkedBooks posted at August 20, 2017

This site offers a searchable library of regexs: and this regular expression cookbook contains hundreds of examples of regex matching patterns

Top Books
We collected top books from hacker news, stack overflow, Reddit, which are recommended by amazing people.