Learn How to Do-It-Yourself!
  Search:       

Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET (Pocket Reference (O'Reilly))

by Tony Stubblebine

List Price:$14.99
Amazon Price:$10.19 & eligible for FREE Super Saver Shipping on orders over $25.
You Save:$4.80 (32%)
Average Rating:4 out of 5 stars
Lowest New Price:$7.71
Availablitiy:Usually ships in 24 hours

Buy Now!


Editorial Reviews
Product Description
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.


All Customer Reviews
Average Customer Review:4 out of 5 stars
2 of 2 people found the following review helpful:

5 out of 5 starsGreat reference to an arcane subject, 2008-07-16
I'm scared of regular expressions. They vex me constantly at work whether trying to figure out someone else's Apache RewriteRules or Perl or just trying myself to do mildly clever things in vi and sed. They are a headache.

A coworker let me browse his copy of this wonderful little book and I was hooked. I actually tried to buy one that day on the way home, but they were out of stock and so I permitted Amazon to ship me one.

In addition to brief explanations of the different types of regexes in the wild (based on the comprehensive Mastering title, also from ORA), there are detailed quick references to all of the different implementations including several common languages (Perl, PHP, C#, and several others) and software packages (including sed, Apache, vi and many others). All of their various quicks and "features" are explained briefly and there are some examples.

No one hacking around in Unix or doing much programming should be without this book, unless they are already a regex wizard, and I think even they'd find it handy.


1 of 1 people found the following review helpful:

4 out of 5 starsJust a mus have, 2008-07-14
Most developers know how to write regular expressions, almost none of them can read them. And if you are saying that you can. Well congratulations to you. You are one of the 0.1% of developers that can or you are one of those who think they can.

The books physical appearance is so compact that it has become a permanent item on my working desk. And is often used.


1 of 1 people found the following review helpful:

5 out of 5 starsA good multilanguage reference, 2007-11-24
You know those times when you know what you want to do, but are not sure of the correct form, this is the book to grab. It has been my book to grab as a reference rather than trying to find the right language book. This is not the book to learn the language from, however. You will find your copy will be well worn if you do lots of coding.


2 of 2 people found the following review helpful:

5 out of 5 starsRegular expressions, part of a healthy breakfast, 2007-11-21
Pocket references are not meant to teach you anything from the beginning, but to be everyday references in known and new environments. In other words, if you don't know regular expressions, then go to "Mastering Regular Expressions". If you're still here, then you'll get a cheat sheet on steroids for languages ranging from bug-prone JavaScript to the King and Queen of robustness, Perl and Python. Although everything claims to be PCRE these days, particular examples in every language available is a plus for anyone. A must for any type of user input validation.


0 of 0 people found the following review helpful:

3 out of 5 starsGood book for well-versed developers in/using multiple programming languages , 2007-10-26
From the back cover of the Regular Expression Pocket Reference: "Ideal as a quick reference..." and "... makes an ideal on-the-job companion." All this is true if you are well-versed in regular expressions and use multiple programming languages (and confuse the syntax).

I like the use of the same examples across programming languages (where applicable).

The recipes in the cookbook section are great, although I would have liked to see additional recipes (like stripping HTML tags, matching credit card numbers etc...). Of course the examples are endless and over time one builds his/her own recipe collection. At least this is a good place to start.




Price is accurate as of the date/time indicated. Prices and product availability are subject to change. Any price displayed on the Amazon website at the time of purchase will govern the sale of this product.
Related Products