Title: Regular Expression Pocket Reference
Subtitle: Regular Expressions for Perl, Ruby,
PHP, Python, C, Java and .NET
Author: Tony Stubblebine
Publisher: O'Reilly Media
Edition: Second
Publication Month: July 2007
ISBN 10: 0-596-51427-1
ISBN 13: 9780596514273
Pages: 126
Cost: $14.95 USD, £9.50 GBP
Smiley Rating: Excellent. :) :) :) :) :) of 5
I recommend getting this book if you:
As one expects from an O'Reilly Pocket Reference, this book is compact but still covers a lot of ground. For a whole bunch of applications, it provides
The information is concise and well chosen.
This is a reference, but in applications where you use regular expressions less, it may also be useful for expanding your knowledge significantly. It was for me.
If you wish, take a look at my somewhat more detailed review.
George Woolley
of Camelot.pm and Oakland.pm
When I looked (2007-08-31), this book was not on Safari Tech Books Online. :( However, I saw a number of other O'Reilly Pocket References including the first edition of this book.
I found some interesting online references using the following search:
online regular expression reference -oreilly
The -oreilly is so this book won't show up.
Or if you are searching for a reference for a specific language (or other application), you could include that in the search.
If you seek an online tutorial,
you could use a search similar to that shown in the pevious subsection
but replace reference with tutorial.
Regular Expressions can be viewed as a pattern matching language. Regular expressions exist in many computer languages, though the exact syntax and semantics varies somewhat from language to language. The origin of regular expressions is the work of Kleene in mathematics.
A regular expression can be used to identify a pattern in significantly different sequences of text.
If you don't already know what a regular expression is, you should probably not get this book.
Here's the first paragraph of the book which describes regular expressions: "Regular expressions are a language used for parsing and manipulating text. They are often used to perform complex search-and-replace operations, and to validate that text data is well-formed."
O'Reilly Pocket References:
Yes. The book is certainly about regular expressions. And the book fits the description of a Pocket Reference given above.
I do a lot of manipulation of text and have a general interest in regular expressions. Consequently, I'm interested in the first two sections:
I've been using regular expressions in a Unix shell since 1989 and in Perl since 1994.
I've used the following recently (and am interested in regexes in them):
In the past I've made significant use of:
All in all, I'm interested in most of this book.
I own many O'Reilly books. I've made significant use of many O'Reilly books.
I've reviewed many O'Reilly books including several Pocket References.
I read, reviewed and made use of the previous edition of this book as a reference.
If you wish, you are certainly welcome to take a look at my review of the first edition.
By the numbers what you get is:
Above I use the word application broadly to include most software besides the kernel of an operating system.
There are no chapters. Basically the body of this book consists of 13 sections.
Application Sections: What I refer to as the application sections mostly consist of 4 or 5 subsections, though there is one section with only two subsections. In the case of Perl 5.8 the subsections are:
Other sections typically have these subsections or a subset of them, though in the case of the second subsection the subsection heading may vary significantly.
The 11 application sections are from 6 to 13 pages long.
The first edition of this book had similar sections, however in the first edition there were no sections corresponding to:
Also, there are some updates since the first edition.
This book is a good companion for "Mastering Regular Expressions" (MRE). It has the same two owls on its cover as does MRE. :)
MRE only has separate chapters for:
However, MRE does have a fair amount of coverage of Python, Ruby and PCRE even though there are not separate chapters on them.
The Pocket Reference makes many references to specific page numbers in the Third Edition of MRE.
I like concise when that works for me, and this book works for me.
I like the layout of this book which I described in the "What You Get" section above.
I think the "About This Book" and other material before the body is:
I like that the book has many references to "Mastering Regular Expressions", especially as I consider MRE to be one of the three best technical books I've ever encountered.
I like using this book as a reference. Because the book is short and well organized, I don't bother to use the index; I go to the section on the application I have a question about and look through the subsection that seems relevant.
When I tested that approach, it worked 12 times out of 12.
I like that the book covers a number of applications I favor.
I don't find the index to be of much use. I rarely use it.
However, for the index to be of much use to me, it would have to be way longer. And if the index were way longer, I'd be complaining about its length.
See "Using as a Reference" in the "Likes" section above.
This pocket reference would be good for someone who has all the following characteristics:
If the someone doesn't already own a concise reference for regular expressions, all the better. If they already know they like O'Reilly Pocket References, even better.
This book would not be good for anyone with any of the following characteristics:
This is an excellent and concise O'Reilly Pocket Reference covering regular expressions for a number of different applications. If you want that, get this book.
Complete Draft on the Web: 2007-09-02f
Minor Changes: 2007-09-03c
A Number of Minor Changes: 2007-09-11b
Removed Draft Status: 2007-09-12b