Regular Expression Pocket Reference and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.

Sign in to turn on 1-Click ordering.
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Start reading Regular Expression Pocket Reference on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET [Paperback]

Tony Stubblebine
4.1 out of 5 stars  See all reviews (14 customer reviews)
List Price: CDN$ 17.99
Price: CDN$ 11.51 & FREE Shipping on orders over CDN$ 25. Details
You Save: CDN$ 6.48 (36%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 2 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Want it delivered Friday, October 3? Choose One-Day Shipping at checkout.


Amazon Price New from Used from
Kindle Edition CDN $5.45  
Paperback CDN $11.51  
Save Up to 90% on Textbooks
Hit the books in's Textbook Store and save up to 90% on used textbooks and 35% on new textbooks. Learn more.
Join Amazon Student in Canada

Book Description

July 28 2007 0596514271 978-0596514273 Second Edition

This handy little book 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 a quick reference, Regular Expression Pocket Reference covers the regular expression APIs for Perl 5.8, Ruby (including some upcoming 1.9 features), Java, PHP, .NET and C#, Python, vi, JavaScript, and the PCRE regular expression libraries.

This concise and easy-to-use reference puts a very powerful tool for manipulating text and data right at your fingertips. Composed of a mixture of symbols and text, regular expressions can be an outlet for creativity, for brilliant programming, and for the elegant solution. Regular Expression Pocket Reference offers an introduction to regular expressions, pattern matching, metacharacters, modes and constructs, and then provides separate sections for each of the language APIs, with complete regex listings including:

  • Supported metacharacters for each language API
  • Regular expression classes and interfaces for Ruby, Java, .NET, and C#
  • Regular expression operators for Perl 5.8
  • Regular expression module objects and functions for Python
  • Pattern-matching functions for PHP and the vi editor
  • Pattern-matching methods and objects for JavaScript
  • Unicode Support for each of the languages
With plenty of examples and other resources, Regular Expression Pocket Reference summarizes the complex rules for performing this critical text-processing function, and presents this often-confusing topic in a friendly and well-organized format. This guide makes an ideal on-the-job companion.

Special Offers and Product Promotions

  • Join Amazon Student in Canada

Frequently Bought Together

Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET + bash Pocket Reference
Price For Both: CDN$ 21.49

One of these items ships sooner than the other.

  • bash Pocket Reference CDN$ 9.98

Customers Who Bought This Item Also Bought

Product Details

Product Description

Book Description

Regular Expressions for Perl, Ruby, PHP, Python, C, Java, and .NET

About the Author

Tony Stubblebine is an Internet consultant, entrepreneur, and blogger. He's also the author of Regular Expression Pocket Reference, former Engineering Director for and former Engineering Lead for O'Reilly Media. He posts regular updates to his blog, StubbleBlog and regularly releases small websites such as Gem Jack, a repository of documentation for Ruby gems, Rate My Dance Moves, a YouTube mashup, and I Heart Quotes, the Unix fortune program re-imagined for the web.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

Most helpful customer reviews
7 of 7 people found the following review helpful
2.0 out of 5 stars Too many implementations covered Dec 15 2003
I love this series of books (the C#, C++ and STL pocket refs are my favorite), but the Regular Expression pocket ref tries to cover too many implementations. You only get about 10 pages for each language so, unless you use multiple implementations (e.g. C#/.NET, Perl, JavaScript, etc), this just isn't good value for money. I returned my copy and printed out a quick reference from one of the many Internet programming sites.
Was this review helpful to you?
4.0 out of 5 stars Perfect for looking up that question Dec 7 2003
If you've ever picked up a copy of O'Reilly's Mastering Regular Expressions, then you'll feel right at home with this book. The Pocket Reference is all about usability, and this book is no exception. If you've never seen Mastering Regular Expressions, then this book takes the most important aspects of that book into about 80 pages.
This book is basically divided into various languages (Perl, C, Java, C#) with examples on how to use regular expressions with each language. In addition to discussing the built-in language specific functions that you should use, there is discussion on the differences and nuances to using regular expressions in the specific language.
If you need a desktop quick reference on regular expressions, then I would highly recommend this book. I have it next to my desk with the .NET section bookmarked. If you need something with a little more depth and explanation, then I would suggest picking up a copy of O'Reilly's Mastering Regular Expressions.
Was this review helpful to you?
5.0 out of 5 stars An Excellent Regex Reference March 10 2004
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;
* 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 on Oakland Perl Mongers.
Was this review helpful to you?
4.0 out of 5 stars very useful little book Sept. 9 2003
By A Customer
Nice compendium, flip thru this before tackling Friedl's Reg Ex book. Pocket refs're 7" high, <100 pages, so there's lots that could be added, some things to cut out.
- hilite significant diffs betw perl 5.8 & other regex modules e.g. MatchEvaluator delegates, or PHP's /U modifier. In particular, compare perl, java.util.regex & C#.
- either add emacs, or cut out vi. If you keep vi, hilite diffs betw vim & vi.
- mention performance issues (grouping, lookbehinds, stuff like that)
- mention deprecated modules to avoid: python regex, PHP's ereg_ functions
Aside from that, it's nice to have a portable summary of perl, python, C#, java and PHP, along with refs to Friedl's book.
Was this review helpful to you?
5.0 out of 5 stars Extremely Beneficial Sept. 30 2003
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.
Was this review helpful to you?
5.0 out of 5 stars EXCELLENT reference Nov. 7 2003
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 can't recommend this book enough! This book will definitely pay for itself quickly.
Was this review helpful to you?
4.0 out of 5 stars All that and a bag of chips Sept. 16 2003
By A Customer
I found this guide very useful. I learned a whole slew of new expressions to incorporate into my everyday vocabulary. To think, I'd been wasting my time saying things like, "Wicked cool!".
Stubblebine gives it to you in an easy-to-understand format. If he had other books I'd buy them (plus, I understand from some women in the geek community that he's a total babe!). Two thumbs up!
Was this review helpful to you?
Want to see more reviews on this item?
Most recent customer reviews
5.0 out of 5 stars Regular Expression Pocket Reference
Regular Expression Pocket Reference -- I use this as a quick look up guide for regular expressions. A nice companion to the full sized book.
Published 10 months ago by Joel Andrews
4.0 out of 5 stars A must have book for every developer!
For someone who develops in multiple languages this book is extremely beneficial. You can use this book for a quick and thorough
reference and it covers many platforms. Read more
Published on July 31 2012 by Abdullah Rubiyath
4.0 out of 5 stars Express yourself
Real programmers are regularly expressive. The concept is as important to programming languages and utilities as pointers are to "c". Read more
Published on Nov. 19 2010 by bernie
3.0 out of 5 stars Too Many Implementations?
Based on the .NET chapter it would appear that the author tackled too many implementations. It looked like all of the . Read more
Published on May 28 2004
4.0 out of 5 stars Regarding the DavidPerry Review
Nice cut and paste of the Ann Coulter book review. I particularly liked the "Menckenesque invective" comment which made me think that I had remembered reading it... Read more
Published on Feb. 24 2004 by Evan A. Bonnett
5.0 out of 5 stars Undeniably brilliant!!!
"Regular Expression Pocket Reference" is one of the hottest and most controversial books of the year! Read more
Published on Dec 22 2003 by "davidperry17"
4.0 out of 5 stars Great reference, but not a tutorial
The editorial blurb on this book suggests that it can be used as a tutorial by those new to regular expressions. That's not the case. Read more
Published on Nov. 20 2003 by David C. Veeneman
Search Customer Reviews
Only search this product's reviews

Look for similar items by category