Average Customer Review:
( 146 customer reviews )
Write an online review and share your thoughts with other customers.
Most Helpful Customer Reviews
123 of 132 found the following review helpful:
I need more stars... Bravo JeffreyDec 09, 2001
Jeffrey Friedl's "Matering Regular Expressions" does a facinating job in taking you through the jungle (and I mean jungle) of RegExp.I am a Perl/CGI programmer, and I had considered myself good at RegExp even before I read this book. Most of the things I knew were from Programming Perl, 3rd edition (chapter 5, Pattern Matching). But I still decided to give Jeffrey a chance since I was having some trouble with my Parse::Syntax module, which is designed to parsing *any* programming language and highlighting the syntax accordingly (provided it has a syntax/grammer file written for the specific language). The accuracy of the parser (and more importantly the speed) does depend on well crafted regular expressions. As I started reading the book, I couldn't stop. I took it to my school's cafeteria with me and no one could make me leave untill I finished the whole book. I was excited. I was pleased! Here is the outline of tha chapters: Chapter 1 and 2 introduce you to regular expressions and give some basic regex examples. Mail utility and date matching is two of them. Chapter 3 mostly talks about conventions that all the regex tools follow and their differences. Chapter 4 deals with Traditional NFA, POSIX NFA and DFA regex engines and their pros and cons. What you'll like the most is the details provided by the author on each and every single example. He also uses a lot of step-by-step illustrations to take you deeper into the regex engine itself and see/feel how it works. He shows the point of backtrackings and provides awesome benchmarks. He uses such examples of matching a quote, allowing escaped quotes inside the pattern, matching C-style comments, IP addresses and many more. Chapter 5 deals with writing efficient regular expressions for NFA engines. It also re-vists some of the examples provided in the previous chapter and fine-tunes them. Chapter 6 and 7 deals with Tool-Language specific features of Regex engines. Chapter 6 is dedicated to Awk, Tcl and GNU Emacs, whereas chapter 7 is entirely dedicated to Perl, good over 100 pages of Perlism. It's true that there're features that Perl 5.6 offers when it comes to regex that didn't exist at the time this book went to press, (lookbehinds, for example). But this no way makes this book dated. Just take my word for it. Jeffrey put together a great masterpiece that will not die for many years, no matter how fast the technology tends to enhance Haven't read anything more exciting than this for many years.
38 of 39 found the following review helpful:
Those wise birds!May 03, 2001
By Alfred Anzlovar I got Mastering Regular Expressions in 1998 and I peek back regularly and it am proud to say is one of most used and useful books I own. Regular expressions are for everyone. They are simple to write and can be close to impossible to read and even unimaginably harder to understand. But reading comes after you can craft one. And this art of crafting RE is explained in astonishing detail and analysis in this book. Reader is carefully guided through basics, differences and common and uncommon pitfalls. Some of the parts are definitely not for the faint hearted! And this is especially true for parts that cover Perl RE. While main topic is Perl RE engine, a deep-enough travel through different RE dialects is made to help RE-crafting in almost any tool that supports REs. I've used the methods described in the book in tools as different as MS VC++, various editors, search engines and programming (Perl, PHP, C++, ...). The ability to use RE usually impressed people to the point they were sure I am using some incredible magic. But I must say that the most useful feature delivered in this book was ability to PARSE, UNDERSTAND and FIX a (slow, broken, strange acting) RE. This can be slowly absorbed by reader's (open) mind while carefully reading the book. The difference between meant/written can be as extreme as it can get in RE. I can (proudly) say I've been able to fix several complex REs, by simply (one could say blindly) following the rules laid in the book. My opinion is thath without this book real understanding of RE is almost impossible. I recommended it all of those who use programs that support (any form) of RE engine. It will help them solve some (hard) problems incredibly fast!
17 of 17 found the following review helpful:
So good, I bought it twice!Jan 05, 2003
By Bob Nelson In spite of the vow that Friedl would not put himself (and his family) through the rigors of writing a followup to his first edition, I sure am glad he made the decision to write a second edition. Over 5 years ago, I got the first such book and found it to be a humbling experience -- realizing just how little I *really* knew about regular expressions (in spite of thinking my skills were quite advanced in that area). Now, years later and as an instructor of UNIX at North Lake College in Irving, Texas, I highly recommend this book to even our first year students. Friedl's clear explanation of this topic and the manner in which he presents the material makes it comprehensible to even those that have never had experience with regex's before. Like Perl's Larry Wall, Jeffrey Friedl has a strong background in natural languages. That contributes not only to bhis lucid writing style but also helps in terms of understanding regex's as a "little language". This 2nd edition is particularly welcome because of its extensive coverage of regular expressions in the context of Java. That ons aspect alone is sufficient to get the updated second edition (to say nothing of the enhancements in Perl since the first edition of the book).
19 of 20 found the following review helpful:
i wish all tech books were this goodMar 07, 2002
By W. Gage I can't say enough good things about this book. Regular expressions are such a powerful concept, but some of that power would be easy to miss if not guided correctly through the topic. Jeffrey Freidl does a great job of making a potentially very dry subject interesting, even while getting very involved in all the complexities that are inherent in such a powerful abstraction. He also does a good job of presenting both the general topic of regular expressions and the specific characteristics of the various tools available to process them. This is a book that you will come back to many times. I actually read it as a precursor to learning Perl several years ago. Then just recently I revisited it while taking a class on compiler construction and found that it still had useful insights for me. If you're a committed programmer, this book should be on your shelf. Also, the criticisms I've read in reviews here are pretty misguided. It is "chatty", because the author has a genuine enthusiasm for his subject. It is also not a "teach yourself regular expressions in 24 hours" kind of book. There are actually lots of cookbook style examples, but the main point of the book is to give you a solid enough understanding of the general topic that you don't need examples to craft your regexes. In this case, little patience as a reader will be much rewarded.
31 of 35 found the following review helpful:
Learning Perl? Buy this first!Feb 07, 1998
I made the mistake of buying a bunch of books on Perl to try to learn Perl programming. I made progress, but it was slow -- and it beat me down. Then I bought THIS book. Perl's implementation of Regular Expressions is a great deal of the functionality of that language. This is true to the extent that trying to read Perl script without knowing Regular Expressions is tedious at best. This is not just another computer book. Jeffrey Friedl has put his heart and soul into this work, and it shows. He even offers free updates (in the truest, most honest sense of the word) from his own web page. This is the best programming book I own. After reading this book, Perl script reads like USA Today! Save yourself lots of heartache. Buy this book, Mastering Regular Expressions -- read it -- THEN learn Perl! Jeff Morris
See all 146 customer reviews on Amazon.com
|