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

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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.

Author(s): Tony Stubblebine
Series: Pocket Reference (O'Reilly)
Edition: 2nd
Publisher: O'Reilly Media
Year: 2007

Language: English
Pages: 128

Regular Expression Pocket Reference, Second Edition......Page 1
Contents......Page 6
About This Book......Page 10
Acknowledgments......Page 11
Introduction to Regexes and Pattern Matching......Page 12
Character representations......Page 14
Character classes and class-like constructs......Page 15
Anchors and zero-width assertions......Page 18
Comments and mode modifiers......Page 19
Grouping, capturing, conditionals, and control......Page 20
Regular Expression Cookbook......Page 22
U.S. currency......Page 23
Email......Page 24
Supported Metacharacters......Page 25
qr// (Quote Regex)......Page 30
split......Page 31
Unicode Support......Page 32
Examples......Page 33
Other Resources......Page 34
Supported Metacharacters......Page 35
java.lang.String......Page 39
java.util.regex.Pattern......Page 40
java.util.regex.Matcher......Page 41
java.lang.CharSequence......Page 43
Examples......Page 44
Supported Metacharacters......Page 47
Regular Expression Classes and Interfaces......Page 51
Regex......Page 52
Group......Page 55
Examples......Page 56
Supported Metacharacters......Page 59
Pattern-Matching Functions......Page 63
Examples......Page 65
Supported Metacharacters......Page 67
re Module Objects and Functions......Page 70
Module Functions......Page 71
Match Objects......Page 72
Unicode Support......Page 73
Examples......Page 74
RUBY......Page 75
Supported Metacharacters......Page 76
Object-Oriented Interface......Page 79
String......Page 80
Regexp......Page 81
MatchData......Page 83
Examples......Page 84
Supported Metacharacters......Page 86
Pattern-Matching Methods and Objects......Page 88
RegExp......Page 89
Examples......Page 91
PCRE......Page 92
Supported Metacharacters......Page 93
PCRE API Synopsis......Page 98
Examples......Page 101
Supported Metacharacters......Page 105
RewriteRule......Page 108
Examples......Page 111
Supported Metacharacters......Page 112
Searching......Page 115
Substitution......Page 116
Other Resources......Page 117
Supported Metacharacters......Page 118
sed......Page 121
awk......Page 122
Other Resources......Page 123
Index......Page 124