BUY THIS BOOK
Add to Cart

PDF $6.99

Safari Books Online

What is this?

Looking to Reprint or License this content?

Regular Expression Pocket Reference

By Tony Stubblebine
First Edition  August 2003 
Pages: 100
Series: Pocket References
ISBN 10: 0-596-00415-X | ISBN 13: 9780596004156
starstarstarstarstar (Average of 3 Customer Reviews)

This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.

The latest edition is also available on Safari Books Online.

Book description

Ideal as an introduction for beginners and a quick reference for advanced programmers, Regular Expression Pocket Reference is a comprehensive guide to regular expression APIs for C, Perl, PHP, Java, .NET, Python, vi, and the POSIX regular expression libraries. This handy book offers programmers a complete overview of the syntax and semantics of regular expressions that are at the heart of every text-processing application. When you've reached a sticking point and need to get to a solution quickly, the new Regular Expression Pocket Reference is the book you'll want to have.
Full Description

Regular expressions are such a powerful tool for manipulating text and data that anyone who uses a computer can benefit from them. Composed of a mixture of symbols and text, regular expressions can be an outlet for creativity, for brilliant programming, and for the elegant solution. While a command of regular expressions is an invaluable skill, all there is to know about them fills a very large volume, and you don't always have time to thumb through hundreds of pages each time a question arises. The answer is the Regular Expression Pocket Reference. Concise and easy-to-use, this little book is the portable companion to Mastering Regular Expressions.

This handy guide offers programmers a complete overview of the syntax and semantics of regular expressions that are at the heart of every text-processing application. Ideal as an introduction for beginners and a quick reference for advanced programmers, Regular Expression Pocket Reference is a comprehensive guide to regular expression APIs for C, Perl, PHP,Java, .NET, Python, vi, and the POSIX regular expression libraries.

O'Reilly's Pocket References have become a favorite among programmers everywhere. By providing a wealth of important details in a concise, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point and need to get to a solution quickly, the new Regular Expression Pocket Reference is the book you'll want to have.
Post-purchase benefits:

Register your book | Submit Errata


Browse within this book

Cover | Table of Contents | Index | Sample Excerpts

Book details

First Edition: August 2003
Series: Pocket References
ISBN: 0-596-00415-X
Pages: 100
Average Customer Reviews: starstarstarstarstar (Based on 3 Reviews)


Featured customer reviews

Write a Review


Somewhat vague and slightly out of focus,  July 11 2006
Rating: StarStarStarStarStar
Submitted by av   [Respond | View]

In some cases, this book can be useful to quickly find a piece of info for one of the specifically covered tools. But it leaves something to be desired and I look forward for an amended edition.

The generic part is obviously minimal, but it could have been more accurate: it mentions that syntax and availability vary by implementation, but never attempts to classify which implements which. Not even the distinction between BRE and ERE. Character representations described in pages 5-13 are good for a lecture on "most available types of regular expressions": a rather vague concept.

By comparison, Perl Pocket Reference's chapter on regex is both more concise and more accurate than
Regular Expression Pocket Reference's chapter on Perl. However, the latter features a discussion on operators for regex and some examples that may make it clearer than the former. A complete example, using perl's command line options -i, -p, and -e, is missing.

There are repetitions, e.g. tables 26-30 for PCRE are reprinted exactly alike, except for different page breaks, as tables 31-35 for PHP's perl-compatible regex.

Emacs is missing. Is it less popular than vi?



A Review of "Regular Expression Pocket Reference",  July 12 2005
Rating: StarStarStarStarStar
Submitted by G. Roush   [Respond | View]

One of the most difficult things when working with regular expressoins -- at least for me -- is dealing with different implementations (i.e., Perl, Java, Python, PHP, UNIX tools, etc.) The basics of regexes and pattern matching don't vary all that much, but each implementation is just different enough that the smae line of code can yield different results. If you work with more than one of these implementations, keeping track of differences in metacharacters and metasequences can be nearly impossible. This is especially true when -- as is the case with me -- you deal with regexes somewhat intermittently.

This is one of the main reasons why the "Regular Expression Pocket Reference"
was written and this is why I keep it close at hand. This book will not really teach you how to use regexes, nor will it tell you how to use, say, Perl. If, however, you use Perl and you know how to use regexes but just can't remember whether you can disallow backtracking for text matched by a subpattern, then this book will save you quite a bit of time and effort.

If you're wondering what it means to "disallow backtracking for text matched by a subpattern," or when you would want to use it, buy "Mastering Regular Expressions" or a similar title. The "Regular Expression Pocket Reference" is designed to be a quick reference tool, and it serves this purpose very well. I would recommend it especially for those who work with regular expressions intermittently or who work with several different implementations.


Regular Expression Pocket Reference Review,  October 10 2003
Rating: StarStarStarStarStar
Submitted by George Woolley of Oakland.pm   [Respond | View]



I recommend getting this book

if you feel comfortable with regular expressions

and regular expressions are important to 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:

tables of various groupings of regex metacharacters'

summarizing their syntax and meaning,

summaries of other regex related features

but not in tabular form,

examples,

and a few references in case you need to go deeper.

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

more detailed review.



Read all reviews


Media reviews
"[Consumers] will find the fine 'pocket references' produced by O'Reilly to be compact and affordable."
-- James Cox, The Computer Shelf: Midwest Book Review

"The Regular Expression Pocket Reference is designed to be a quick reference tool, and it serves this purpose very well. I would recommend it especially for those who work with regular expressions intermittently or who work with several different implementations."
-G. Roush, Amazon.com review, July 2005

"Even though I use regular expressions quite a bit, I still find my self looking up syntax. This pocket reference is just what I need (sitting next to the monitor) to quickly look up syntax."
--Scott Hildreth, Chicago Perl Mongers, November 2003
http://chicago.pm.org/reviews/pocketregex.html

"I totally love this little book! I love how the author cross-references with the Regular Expressions book; it makes getting into the gory details much easier. This book is perfect for people like me who are always forgetting the little details about regular expressions. If you program in Perl, PHP, Python, C or Java, I cant recommend this book enough! This book will definitely pay for itself quickly."
--Amazon.com, November 2003
http://www.amazon.com/exec/obidos/tg/detail/-/059600415X/qid=1070995496/sr=1-1/ref=sr_1_1/002-6662804-1388053?v=glance&s=books

"I've been programming with perl for seven years. I've always found it cumbersome trying to remember everything that regular expressions have to offer. Since I have purchased Regular Expression Pocket Reference I no longer have this problem. This book has been a tremendous help to me in utilizing the true power of regular expressions. The explanations and examples are exceptionally clear and easy to comprehend. The book has improved my programming capabilities while making my job easier. I highly recommend this book to anyone who is required to use regular expressions or to the newbie who wants to learn how."
--Booksunderreview.com, September 2003
http://www.booksunderreview.com/Computers/Programming/Languages/Regular_Expressions/Perl/

"If you need a desktop quick reference on regular expressions, then I would highly recommend this book."
--Salt Lake City ColdFusion User Group, December 2003
http://www.slcfug.org/index.cfm?pageID=59

Hide extended reviews


See larger cover