Mastering Regular Expressions, Second Edition

by O'Reilly Media, Inc.

$39.95
51% off
buy from amazon.com
Average Rating: * * * * half star
Sales Rank:289964 (lower is better)
Price as of:08/31/2008 10:15:21 AM MDT
Price Used:$4.99
Shipping:Free Shipping on most orders over $25*
Availability:
Label:O'Reilly Media, Inc.
Pages:496
Binding:Paperback
Publication Date:2002-07-15
Published By:O'Reilly Media, Inc.
ASIN:0596002890
Category:Book

Authors

Editorial Reviews and Product Descriptions

Product Description

Regular expressions are an extremely powerful tool for manipulating text and data. They have spread like wildfire in recent years, now offered as standard features in Perl, Java, VB.NET and C# (and any language using the .NET Framework), PHP, Python, Ruby, Tcl, MySQL, awk, Emacs, and many other popular tools and languages. If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and breadth of coverage. If you think you know all you need to know about regular expressions, this book is a stunning eye-opener. In spite their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. A command of regular expressions is an invaluable skill. Yet what is power in the hands of an expert can be fraught with peril for the unwary.

Mastering Regular Expressions will help you navigate the minefield to becoming an expert. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them. Mastering Regular Expressions, Second Edition has been thoroughly updated to include all the new features of Perl 5.8, as well as several other languages, including Java, VB.NET, C#, Python, JavaScript, Tcl, and Ruby. Written in the lucid, entertaining tone that made a complex, dry topic crystal-clear to thousands of programmers, and sprinkled with solutions to complex real-world problems, Mastering Regular Expressions offers a wealth information that you can put to immediate use. Topics include:

  • A comparison of features among different versions of many languages and tools
  • How the regular expression engine works
  • Optimization (major savings available here!)
  • Matching just what you want, but not what you don't want
  • Sections and chapters on individual languages
Amazon.com

Regular expressions are a central element of UNIX utilities like egrep and programming languages such as Perl. But whether you're a UNIX user or not, you can benefit from a better understanding of regular expressions since they work with applications ranging from validating data-entry fields to manipulating information in multimegabyte text files. Mastering Regular Expressions quickly covers the basics of regular-expression syntax, then delves into the mechanics of expression-processing, common pitfalls, performance issues, and implementation-specific differences. Written in an engaging style and sprinkled with solutions to complex real-world problems, Mastering Regular Expressions offers a wealth information that you can put to immediate use.

Customer Reviews

Great book, but little Ruby - Reviewed on 2008-09-07
* * * * *

This book is great if you want to learn about what you can do with regex, how they work, how you can improve them (efficiency & accuracy) and what kind of pitfalls there are.

My only gripe is about the Ruby reference on the cover. In the top right corner it says: "For Perl, PHP, Java, .NET, Ruby and more!" Perl, Java, .NET and PHP each get their own chapters (together 200 pages). Ruby, however, only participates in feature comparisons and benchmarks. If I had checked the ToC I would've known this, so I won't hold it against the book that much.

The Ruby thing is a bummer, but since the book is great, it will get all five stars.
Overall good book with some quirks - Reviewed on 2008-06-19
* * *

The book is robust and goes into alot detail. I liked the comparing and contrasting between the various RegEx implementations. I had a difficult time digesting some of the detail. In particular, the analogies confused me and I felt the author went overboard with them. Many times, I had to backtrack to understand what was being discussed. However, regular expressions is a complex topic and the author did a good job easing into the concepts. An additional plus was with inline page citation - this helped to find the page corresponding to the topic being discussed.
I would have liked shorter chapters with chapter summaries and more diagrams in place of analogies. Ultimately, Mastering Regular Expressions is a good book referencing a complex topic.
Best material I have seen on regular expressions - Reviewed on 2008-06-01
* * * * *

I went through several books and online tutorials and never found anything that did a good comprehensive job of explaining regular expressions. This book does. If you are having trouble "getting it", I highly encourage reading this book. You will be extremely enlightened even after the first few chapters.
Very in-depth - Reviewed on 2008-05-23
* * * *

Quite a comprehensive guide to regular expressions. Gets very detailed in the areas that it covers. However, definitely not a 'beginner's guide'. I highly recommend that you are already comfortable with the basis of regular expressions before picking up this book. You will get way more out of it if this is not your first introduction to it. Comfort and proficiency with Perl would also be a big help. Title is correct though, this is a guide to 'mastering' regular expressions, not learning them from the beginning.
Will take you a long way down the rabbit hole - Reviewed on 2008-02-15
* * *
1 customer found this review helpful.

How deep down the rabbit hole do you really NEED to go? I had a serious need to get on top of regular expressions to solve one particular problem. I looked at several online tutorials which didn't take me where I needed to go, so I ordered Mastering Regular Expressions after reading the Amazon reviews. I always look at the negative reviews first. In spite of the negative reviews I ordered the book with an open mind.
When the book arrived I began reading it with enthusiasm. In the preface there is a small section on "How to Read This Book". I bought into the author's suggestion to read the book's first six chapters first. I was captivated through the first three chapters, and then somewhere in chapter 4 I began to get very weary with information overload. After putting the book down for a couple of days I decided to skip the rest and use what I needed to write the one regular expression I had need of. The book did successfully help me accomplish this, so I gave it 3 stars. Not only did it give me the information I needed that the online tutorials didn't, it also gave me the confidence I needed. For that, which I am grateful, I would have liked to have given it more stars. I think many of those in need of learning about regular expression could be well served by a "lite-edition" of this book. Perhaps someday when I have the time and the need I may try to wade through the rest of the book, but as it is now Mastering Regular Expressions took me far farther down the rabbit hole than I really needed or wanted to go.
If you need to get on top of Regular Expressions, I would recommend this book, however just be ready to be taken far deeper than the average coder probably needs to go.
Read More Customer Reviews »
Go To Amazon Product Page

* - See Amazon Product Page for shipping and pricing details.


Book Subjects