Regular Expression Pocket Reference: (none)

  Author:    Tony Stubblebine
  ISBN:    0596514271
  Sales Rank:    19463
  Published:    2007-07-15
  Publisher:    O'Reilly Media, Inc.
  # Pages:    125
  Binding:    Paperback
  Avg. Rating:    4.0 based on 26 reviews
  Used Offers:    8 from $7.51
  Amazon Price:    $10.19
  (Data above last updated:  2008-10-07 06:20:20 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Regular Expression Pocket Reference: (none)
  
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.
                  Reader Reviews 1 - 16 of 16                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
07-16-08 5 (NA)
(Hide Review...)  Great reference to an arcane subject
Reviewer Permalink
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.
(Review Data Last Updated: 2008-10-04 06:08:27 EST)
07-14-08 4 (NA)
(Hide Review...)  Just a mus have
Reviewer Permalink
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.
(Review Data Last Updated: 2008-07-16 13:32:22 EST)
11-24-07 5 (NA)
(Hide Review...)  A good multilanguage reference
Reviewer Permalink
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.
(Review Data Last Updated: 2008-07-14 06:34:47 EST)
11-22-07 5 (NA)
(Hide Review...)  Regular expressions, part of a healthy breakfast
Reviewer Permalink
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.
(Review Data Last Updated: 2007-11-25 07:38:07 EST)
11-21-07 5 1\1
(Hide Review...)  Regular expressions, part of a healthy breakfast
Reviewer Permalink
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.
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
10-26-07 3 (NA)
(Hide Review...)  Good book for well-versed developers in/using multiple programming languages
Reviewer Permalink
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.
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
08-20-07 4 1\1
(Hide Review...)  if you know reg exps and switch languages a lot...
Reviewer Permalink
"Regular Expression - Pocket Reference" is just as high in quality as it's big brother ("Mastering Regular Expressions.")

The book begins with a very brief review of regular expression concepts and patterns. For each language/tool, the book includes tables to reference the metacharacters, a reference for the API/syntax/library and four examples. A few of the languages have additional examples tailored specifically to that language.

The languages/tools included are: Perl, Java, .NET, PHP, Python, Ruby, JavaScript, PCRE, Apache Web Server, vi and awk/sed/egrep. If you use a number of these, the book is a concise reference. If you only use one, you would be better served by printing out the relevant reference charts from the website of your language of choice.

If you are learning about regular expressions or only going to buy one regular expressions book, I recommend the "Mastering Regular Expressions." If you are knowledgeable about regular expressions and just need a review or reference, this book does the job nicely.
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
07-30-07 5 (NA)
(Hide Review...)  Easy to use due to excellent organiztion
Reviewer Permalink
This book is the best reference for regular expressions. The second edition came out in July 2007 and has several updates over the previous version. The reason for the books ease-of-use lies in the organization. The chapters represent one language each. For each language, listings of the meta-characters and examples are shown. Depending on the language being displayed, there are other subjects covered such as unicode support, object orientation, and different topics unique to the language. The primary parsing engine is listed at the beggining of the chapters with the examples arranged at the ends of the chapters. I generally need to look up expression for JavaScript and [...]. Both of these are covered plus perl, java, php, python, ruby, pcre, apache, vi and shells. I just bookmark the 2 areas I need and I can lookup the expression listing in a few seconds.
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
07-27-07 5 3\3
(Hide Review...)  Excellent concise reference for regular expressions
Reviewer Permalink
This is a handy little guide for common regular expression fundamentals and odds and ends. The intro chapter does a nice job of giving you the regex elevator speech and hits all the important fundamentals: different engines, metacharacters, and general pattern rules. There's also a regex "Cookbook" section; however, that bit is only two pages and the "recipes" there are so rudimentary that they're nearly useless and would have been better left to a different book.

The remaining chapters hit regex support in major languages, Apache, shells, and Vi and Vim editors. These sections are very well done and give you great guidance to regex implementations on that platform, plus give you guidance on the APIs you'll need for working with regexes. Languages covered include Perl 5.8, Java 1.5/1.6, .NET framework with examples in C#, PHP, Python, Ruby, Python and JavaScript. The Perl Compatible Regular Expression library (PCRE) is also covered.

Each chapter is concise, well-written and hits the major things you'll need to refresh your memory on from time to time.

Overall it's a very well done book.
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
07-26-07 4 2\2
(Hide Review...)  Second Edition Arrives
Reviewer Permalink
§
Gawd, I hate doing regular expressions. Don't you? As far as I am concerning, any help is good help.

The new edition adds sections on Ruby and Apache web server and a few updates on previous existing language content.

One of the best things about this book is that the author synchs the content with the authoritative reference Mastering Regular Expressions. In a welcome convenience, the author provides page references to that book to point to elaboration.

One section of the book I really liked (but wished was much more extensive) contained 2 pages of cookbook examples. Learning by example is easier for most of us. It would have been nice to have many more practical examples, esp. regarding Web applications.
§
(Review Data Last Updated: 2008-02-14 00:46:58 EST)
06-06-07 5 (NA)
(Hide Review...)  Handy compilation of regex
Reviewer Permalink
This reference book is very handy for anyone doing text manipulation.

With this book you don't need to be constant user of regular expressions to take advantage to their robust abilities.
(Review Data Last Updated: 2007-07-27 07:54:13 EST)
09-22-06 3 2\3
(Hide Review...)  Handy Portable Reference
Reviewer Permalink
This is not a learning text by any stretch of the imagination. Covering the basic implementation of Regular Expressions in Perl, Java, .NET, C#, Python, PCRE, PHP, vi Editor, JavaScript, and a few shell utilities, this title is well suited as a quick "cheat sheet" for those already familiar, often providing the required information in just the "Supported Metacharacters" section.

Although around 90 (small) pages, the book repeats the same 8-page sequence for each of the aforementioned languages, tweaked as needed. Although handy for those that regularly use multiple languages, the book's format could have been made more efficient.

Those looking for just an as-needed reminder, this title meets your needs. For those looking to learn Regular Expressions, Mastering Regular Expressions (3rd Edition) by Jeffrey Friedl (ISBN: 0596528124) is where you should start.
(Review Data Last Updated: 2007-07-09 20:43:07 EST)
09-29-05 3 1\14
(Hide Review...)  great book, but...
Reviewer Permalink
This is a great handy reference to compare several popular tools supporting regrex.

While I found it may have an error. In page-70, say "Both(vi and vim) use a DFA match engine.", while in another book "Computer Science and Perl Programming" page-91, the author of "Mastering Regular Expressing" Jeffrey Friedl said "Perl has always used an NFA engine, as does vi, sed, GNU emacs, Python, Tcl, expect, and most version of grep". I knew these two engine are very much different, and vim regrex does support capturing and backreference(NFA engine). So I guess there's something wrong in this reference. Could the author check up this issue please? thanks.
(Review Data Last Updated: 2007-07-09 20:43:07 EST)
07-12-05 4 15\15
(Hide Review...)  A review of "Regular Expression Pocket Reference"
Reviewer Permalink
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.
(Review Data Last Updated: 2007-07-09 20:43:07 EST)
02-16-05 5 3\4
(Hide Review...)  Ideal pocket reference
Reviewer Permalink
This is an ideal pcoket reference for people who need to lookup the details of regular expression syntax. This is not for people who know nothing about regular expressions.
(Review Data Last Updated: 2007-07-09 20:43:07 EST)
01-08-05 4 13\14
(Hide Review...)  Perfect book for the intermediate regex coder...
Reviewer Permalink
It's nearly impossible to memorize all the minutiae of regular expressions, especially over multiple language implementations. Tony Stubblebine's book Regular Expression Pocket Reference by O'Reilly is a nice way to help you out without digging through endless pages.

Chapter List: About This Book; Introduction To Regexes And Pattern Matching; Perl 5.8; Java (java.util.regex); .NET And C#; Python; PCRE Lib; PHP; vi Editor; JavaScript; Shell Tools; Index

Like most pocket references, this book is small (93 pages), but there's a lot of information packed into a small space. Each implementation chapter covers the metacharacters and metasequences that are supported in the language's implementation of regular expressions. This is followed by the language functions, examples of regular expressions, and a list of additional resources the reader can use to learn more about regular expressions in that language. If you don't know anything about the subject, this book (in my opinion) isn't going to help you out much. It assumes that you already understand the material and you're looking for a reference guide to find quick answers. And that's fine. This book has a definite purpose and target audience, and I think it does a very nice job of hitting the mark.

For me, this would be a perfect companion book to Mastering Regular Expressions (also by O'Reilly). Mastering is considered one of the definitive volumes on the subject, and having this pocket guide on hand to jog your memory on lesser-used points would be perfect.
(Review Data Last Updated: 2007-07-09 20:43:07 EST)
  
                  Reader Reviews 1 - 16 of 16                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)