Enter your mobile number below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
Getting the download link through email is temporarily not available. Please check back later.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your mobile phone number.

Mastering Regular Expressions, Second Edition 2nd Edition

4.7 out of 5 stars 41 customer reviews
ISBN-13: 978-0596002893
ISBN-10: 0596002890
Why is ISBN important?
ISBN
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Have one to sell? Sell on Amazon
Buy used
$6.10
Condition: Used - Good
Condition: Used: Good
Comment: The item shows wear from consistent use, but it remains in good condition and works perfectly. It may be marked, have identifying markings on it, or show other signs of previous use.
Access codes and supplements are not guaranteed with used items.
49 Used from $1.82
FREE Shipping on orders over $25.
More Buying Choices
8 New from $25.88 49 Used from $1.82

There is a newer edition of this item:

Free Two-Day Shipping for College Students with Prime Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student


Windows10ForDummiesVideo
Windows 10 For Dummies Video Training
Get up to speed with Windows 10 with this video training course from For Dummies. Learn more.
click to open popover

Editorial Reviews

About the Author

Jeffrey Friedl was raised in the countryside of Rootstown, Ohio, and had aspirations of being an astronomer until one day he noticed a TRS-80 Model I sitting unused in the corner of the chem lab (bristling with a full 16K of RAM, no less). He eventually began using Unix (and regular expressions) in 1980, and earned degrees in Computer Science from Kent (BS) and the University of New Hampshire (MS). He did kernel development for Omron Corporation in Kyoto, Japan for eight years before moving in 1997 to Silicon Valley to apply his regular-expression know-how to financial news and data for a little-known company called "Yahoo!"

When faced with the daunting task of filling his copious free time, Jeffrey enjoys playing Ultimate Frisbee and basketball with friends at Yahoo!, programming his house, and feeding the squirrels and jays in his back yard. He also enjoys spending time with his wife Fumie, and preparing for the Fall 2002 release of their first "software project" together.

NO_CONTENT_IN_FEATURE

New York Times best sellers
Browse the New York Times best sellers in popular categories like Fiction, Nonfiction, Picture Books and more. See more

Product Details

  • Series: Nutshell Handbooks
  • Paperback: 496 pages
  • Publisher: O'Reilly Media; 2 edition (July 15, 2002)
  • Language: English
  • ISBN-10: 0596002890
  • ISBN-13: 978-0596002893
  • Product Dimensions: 7 x 1.2 x 9.2 inches
  • Shipping Weight: 1.7 pounds
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (41 customer reviews)
  • Amazon Best Sellers Rank: #489,547 in Books (See Top 100 in Books)

Customer Reviews

Top Customer Reviews

Format: Paperback Verified Purchase
I bought this book on a whim, mainly because I try to buy (and read... ugh!) a hard-core technical book every month or so, but mainly because my UNIX scripting abilities have become rusty with disuse. I used to be able to write a tight, 10-line csh script to mangledit thousands of files at a single time. Now I hack away at files manually with vi. The other day, I even forgot how to search & replace. My kung fu isn't nearly what it used to be.
It usually takes me about a month to slog through a new book (especially academic texts, which are great but make you want to have a stiff martini before each new chapter) but I tore through Friedl's book in a few days. It's an outstanding reference for understanding & learning to use regular expressions.
Regexes can be cryptic to say the least, but Friedl offers many examples, broken down into step-by-step instructions and explanations of how each regex works (in many cases, right down to the individual character level). He covers a variety of platforms and languages - the hardcore Perl enthusiast will enjoy this book greatly, but he offers fairly equal time to alternative languages like Java and the "grep" family.
All that said, this book is an outstanding technical reference, pure and simple, for two reasons:
- Friedl uses an interesting new typesetting convention to illustrate which sections of text are regular expressions, and which sections are not. It's hard to describe (and impossible to reproduce here) but they look like 90-degree braces at the upper-left and lower-right corners. This is a FANTASTIC approach and I for one would love to see this extended to other technical books.
- Speaking of other things I would love to see extended to other technical books, THIS BOOK HAS ALMOST NO ERRORS!
Read more ›
Comment 40 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback Verified Purchase
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).
Comment 20 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
Regular expressions help you "lex", or make sense of text input to your program in a method much more powerful than your junior college or MCSE program taught you.
In the mid '80's I wrote a lexer/parser/compiler as a class assignment. I definitely used regular expressions in order to break the input down into lexemes so I could generate object code. Back then, we learned regular expressions "the hard way".
This book makes learning them easier. You don't have to be writing a compiler in order to make use of regexes! Spam filtering is my current use for them.
2nd ed. vs. 1st ed.: He attacks the subject more seriously.
He (as far as I can tell) dropped "vi" coverage.
He uses Perl 5.8 for his examples, though has chapters for the most popular regex engines, including VB.NET.
Summary: I think it's easier to follow and more business-oriented than the 1st edition, though don't toss the 1st edition. You'll need them both.
Comment 16 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
Most computer programmers have heard of regular expressions, discussed in hushed tones and conjuring images of Unix gurus and their incomprehensible commands and godlike mastery of their systems, yet few actually know enough about regular expressions or how they work to do more than a simple word match using one, if that.
This book covers regular expressions from top to bottom in great and exhaustive detail, including the hows and whys of performance and supported features between the different engines that process them. Though geared mainly toward Perl, the examples and text will apply to nearly any system that provides support, from PHP to ASP to Python.
The text is fairly dense and is not exactly geared toward the novice programmer, though. I've had classes in Finite State Machines and still had to really apply my grey matter in a few spots to understand everything being discussed. However, the understanding the reader gains upon completion of the text is invaluable and will expand one's programming potential exponentially.
The one real lack of the book is a good overview and quick-reference card, but on the whole, the book is a good selection from the O'Reilly library and well worth the read of any serious programmer.
Comment 8 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Recent Customer Reviews