|
 |
|
 |
 |
Mastering Regular Expressions
|
(Paperback - Aug. 15, 2006)
by Jeffrey E F Friedl
Sales Rank: 12087
|
List Price: $44.99
$29.69
At Amazon

|
|
Paperback: 544 pages
Publisher: O'Reilly Media; Third Edition edition August 8, 2006
Language: English
ISBN-10: 9780596528126
ISBN-13: 978-0596528126
ASIN: 0596528124
Product Dimensions:
9.3 x 6.9 x 1 inches
Shipping Weight: 1.7 pounds
Amazon.com Review
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.
--This text refers to an alternate
Paperback
edition.
Customer Reviews & Comments 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.
|
Mastering Regular Expressions
List Price: $44.99
Available from Amazon
Price: $29.69

| |
|
|
|
|