Regex Guru

Wednesday, 29 August 2012

What’s New in The Second Edition of Regular Expressions Cookbook

Filed under: Regex Cookbook — Jan Goyvaerts @ 9:42

The second edition of Regular Expressions Cookbook is a completely revised edition, not just a minor update. All of the content from the first edition has been updated for the latest versions of the regular expression flavors and programming languages we discuss. We’ve corrected all errors that we could find and rewritten many sections that were either unclear or lacking in detail. And lack of detail was not something the first edition was accused of. Expect the second edition to really dot all i’s and cross all t’s.

A few sections were removed. In particular, we removed much talk about browser inconsistencies as modern browsers are much more compatible with the official JavaScript standard.

There is plenty of new content. The second edition has 101 more pages, bringing the total to 612. It’s almost 20% bigger than the first edition.

We’ve added XRegExp as an additional regex flavor to all recipes throughout the book where XRegExp provides a better solution than standard JavaScript. We did keep the standard JavaScript solutions, so you can decide which is better for your needs.

The new edition adds 21 recipes, bringing the total to 146. 14 of the new recipes are in the new Source Code and Log Files chapter. These recipes demonstrate techniques that are very useful for manipulating source code in a text editor and for dealing with log files using a grep tool.

Chapter 3 which has recipes for programming with regular expressions gets only one new recipe, but it’s a doozy. If anyone has ever flamed you for using a regular expression instead of a parser, you’ll now be able to tell them how you can create your own parser by mixing regular expressions with procedural code. Combined with the recipes from the new Source Code and Log Files chapter, you can create parsers for whatever custom language or file format you like.

If you have any interest in regular expressions at all, whether you’re a beginner or already consider yourself an expert, you definitely need a copy of the second edition of Regular Expressions Cookbook if you didn’t already buy the first. If you did buy the first edition, and you often find yourself referring back to it, then the second edition is a very worthwhile upgrade. You can buy the second edition of Regular Expressions Cookbook from Amazon or wherever technical books are sold. Ask for ISBN 1449319432.

3 Comments

  1. […] Coauthor Jan Goyvaerts has written up his own summary of the changes in What’s New in The Second Edition of Regular Expressions Cookbook. […]

    Pingback by Win a Free Copy of Regex Cookbook 2nd Edition — Sunday, 2 September 2012 @ 13:27

  2. […] second edition of Regular Expressions Cookbook is now in stock as a printed book Amazon.com. Right now, the printed book is discounted 45% to […]

    Pingback by Second Edition of Regular Expressions Cookbook Now In Stock at Amazon.com - Regex Guru — Monday, 3 September 2012 @ 15:38

  3. Awesome … Between you, Steve and EditPad Pro I’ve become a reg-ex freak … 😉

    Comment by Edward Beckett — Friday, 7 September 2012 @ 6:04

Sorry, the comment form is closed at this time.