Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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.

Subscriber Reviews

Average Rating: 3.5 out of 5 rating Based on 2 Ratings

"Perfect if you only need a reminder." - by Anonymous on 27-JUL-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I didn't want to look through a "Mastering" book when I all I needed was something to jog my memory. This little guide is perfect.
Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Regular Expression Pocket Reference, 2nd Edition

  • Catalog Page

Visit the errata page for Regular Expression Pocket Reference, 2nd Edition

  • Errata