Industrial-Sized Deals Shop all Back to School Shop Women's Handbags Learn more nav_sap_SWP_6M_fly_beacon Beach House $5 Off Fire TV Stick Off to College Essentials Shop Popular Services pivdl pivdl pivdl  Amazon Echo Starting at $99 Kindle Voyage Nintendo Digital Games Shop Back to School with Amazon Back to School with Amazon Outdoor Recreation Baby Sale
Buy New
  • List Price: $49.99
  • Save: $20.73 (41%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by
Gift-wrap available.
Regular Expressions Cookb... has been added to your Cart
Sell yours for a Gift Card
We'll buy it for $9.44
Learn More
Trade in now
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Regular Expressions Cookbook Paperback – September 3, 2012

24 customer reviews
ISBN-13: 978-1449319434 ISBN-10: 1449319432 Edition: Second Edition

Buy New
Price: $29.26
31 New from $29.25 19 Used from $18.91
Rent from Amazon Price New from Used from
"Please retry"
"Please retry"
$29.25 $18.96
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

InterDesign Brand Store Awareness Rent Textbooks
$29.26 FREE Shipping on orders over $35. In Stock. Ships from and sold by Gift-wrap available.

Frequently Bought Together

Regular Expressions Cookbook + Mastering Regular Expressions + Introducing Regular Expressions
Price for all three: $90.95

Buy the selected items together

Editorial Reviews

Book Description

Detailed Solutions in Eight Programming Languages

About the Author

Jan Goyvaerts runs Just Great Software, where he designs and develops some of the most popular regular expression software. His products include RegexBuddy, the world's only regular expression editor that emulates the peculiarities of 15 regular expression flavors, and PowerGREP, the most feature-rich grep tool for Microsoft Windows.

Steve Levithan works at Facebook as a JavaScript engineer. He has enjoyed programming for nearly 15 years, working in Tokyo, Washington D.C., Baghdad, and Silicon Valley. Steven is a leading JavaScript regular expression expert, and has created a variety of open source regular expression tools including RegexPal and the XRegExp library.

Best Books of the Month
Best Books of the Month
Want to know our Editors' picks for the best books of the month? Browse Best Books of the Month, featuring our favorite new books in more than a dozen categories.

Product Details

  • Paperback: 612 pages
  • Publisher: O'Reilly Media; Second Edition edition (September 6, 2012)
  • Language: English
  • ISBN-10: 1449319432
  • ISBN-13: 978-1449319434
  • Product Dimensions: 7 x 1.3 x 9.2 inches
  • Shipping Weight: 2.1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (24 customer reviews)
  • Amazon Best Sellers Rank: #414,502 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews

10 of 10 people found the following review helpful By Michael Kim on September 18, 2012
Format: Paperback
The authors say it best when they say that the book is intended for those who:

"regularly work with text on a computer, whether that's searching through a pile of documents, manipulating text in a text editor, or developing software that needs to search through or manipulate text."

The first three chapters of this book cover useful tools, basic regular expression skills, and programming with regular expressions. Chapters 4 through 9 contain the practical regular expressions recipes. The programming languages that are covered in this book are C#, Java, JavaScript, PHP, Perl, Python, Ruby, and VB.NET. Every recipe that is in the book has solutions and explanations for all eight languages.

The recipes are organized and easy to look up. For example, finding regular expressions that deal with validation, words, lines, URLs, and etc can be easily located in the table of contents. The author's tone is straightforward, direct, and informative. This is not the kind of book where you read from start to finish, but rather a book where you just skim through to find the recipe that you need in whatever given situation.

With all the languages that the book covers, there are just too many languages to put into a single book. I feel as though instead of having a book with all the languages, it would be better to have a book with a single language. However, I must give praise on how well the authors were able to consolidate detailed solutions in 8 programming languages.

For everything that the book is and everything that it covers, the book offers a lot of information at a bargain. If you work with regular expressions and need a reference book, this book is definitely the way to go.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
11 of 12 people found the following review helpful By R. Friesel Jr. on September 3, 2012
Format: Paperback
Although I run the risk of fawning all over this book here, Jan Goyvaerts and Steven Levithan's "Regular Expressions Cookbook (Second Edition)" (O'Reilly, 2012) is a technical text that I will gladly describe using words like "essential" and "indispensable" and "invaluable". It should be on every working programmer's bookshelf, if not on her desk. It is exhaustive and rigorous, covering the major regex flavors across eight popular/widespread general purpose languages. [1] If your work brings you in regular contact with regular expressions, then you need easy access to this book.

To begin with, Goyvaerts and Levithan present an in-depth discussion of each regex feature, starting with the very basics (e.g., making matches against literal expressions) and working up into some pretty sophisticated topics (e.g., writing parsers). True to the title, their approach is a "cookbook" style: a general problem is stated, a solution is presented (or multiple solutions, if that's what it takes), and then they go into an almost painful (but neatly sectioned) level of detail about the solution, describing it token-for-token in some cases. Now, by "neatly sectioned" I mean that their discussion of each solution is broken down by language [2] wherein they are careful to point out flavor- and/or language-specific nuances, quirks, bugs, and/or unique features. They are very careful about this part--if a particular feature does not work in a language (e.g., how JavaScript lacks named capturing groups) then they show you how to work around that deficiency; but perhaps more importantly, if a feature is unique to a language, they point it out as such and caution you against using them (i.e., to keep your regexes general and portable). [3]

Later chapters (i.e.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
10 of 12 people found the following review helpful By Eric Chou on September 1, 2012
Format: Paperback
O'Reilly cookbooks are awesome. But just like I don't read the recipes cover-to-cover in regular cookbooks, I don't read all the recipes in the O'Reilly cookbooks either. Also just like regular cookbooks, the day before Thanksgiving is not a good time to open the cookbook for the first time, I at least glance thru all the recipes to know what is there, pick out a few that I can use right away, and dog ear the ones I think I will come back to. So here are the criteria that I review this book with:

1. Easy Navigation: Yep, this book is easy to navigate. If I need to do, say form validation, I know I should start at Chapter 4 "Validation and Formatting".
2. Clear and precise explanation: Yes, I think the explanation are short and precise to the topic of discussion.
3. Pointer for more information: This is hard to do, but the book has a section on "See Also" for correlation between recipes and a general pointer toward 'Master Regular Expression' in the introduction chapter.
4. Easy Reading: Hum.. here is more of a wish list of mine, I wish the book is broken down into different books by language. The book covers these languages, VB.NET, C#, Java, JavaScript, XRegExp, PHP, Perl, Python, and Ruby. I typically skip down to Python and occasionally stop at C# and PHP. The book is over 600 pages and listed at $49.99. I would have been happy to pay 1/5 of the price to get one that just focus on Python, and another 1/5 of the price to get one on PHP.

All in all, it is a good value and a keeper on the bookshelf. But I really think it should be broken down into language-specific cookbook as most reader probably use only one or two languages on a daily basis. With today's print-on-demand, e-book format, I think it would be very minimal work for the author and a whole lot of less skipping for the readers. Just my 2 cents.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
Regular Expressions Cookbook
This item: Regular Expressions Cookbook
Price: $29.26
Ships from and sold by

What Other Items Do Customers Buy After Viewing This Item?