Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET, 2/e (Paperback)
暫譯: 正則表達式口袋參考:適用於 Perl、Ruby、PHP、Python、C、Java 和 .NET 的正則表達式,第 2 版 (平裝本)

Tony Stubblebine

買這商品的人也買了...

商品描述

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.

Table of Contents

  About This Book 

     Introduction to Regexes and Pattern Matching 

               Regex Metacharacters, Modes, and Constructs 

               Unicode Support 

     Regular Expression Cookbook 

               Recipes 

     Perl 5.8 

               Supported Metacharacters 

               Regular Expression Operators 

               Unicode Support 

               Examples 

               Other Resources 

     Java (java.util.regex) 

               Supported Metacharacters 

               Regular Expression Classes and Interfaces 

               Unicode Support 

               Examples 

               Other Resources 

     .NET and C# 

               Supported Metacharacters 

               Regular Expression Classes and Interfaces 

               Unicode Support 

               Examples 

               Other Resources 

     PHP 

               Supported Metacharacters 

               Pattern-Matching Functions 

               Examples 

               Other Resources 

     Python 

               Supported Metacharacters 

               re Module Objects and Functions 

               Unicode Support 

               Examples 

               Other Resources 

     RUBY 

               Supported Metacharacters 

               Object-Oriented Interface 

               Unicode Support 

               Examples 

     JavaScript 

               Supported Metacharacters 

               Pattern-Matching Methods and Objects 

               Examples 

               Other Resources 

     PCRE 

               Supported Metacharacters 

               PCRE API 

               Unicode Support 

               Examples 

               Other Resources 

     Apache Web Server 

               Supported Metacharacters 

               RewriteRule 

               Matching Directives 

               Examples 

     vi Editor 

               Supported Metacharacters 

               Pattern Matching 

               Examples 

               Other Resources 

     Shell Tools 

               Supported Metacharacters 

               Other Resources 

Index  

商品描述(中文翻譯)

**描述**

這本實用的小書為程式設計師提供了正則表達式的語法和語義的完整概述,正則表達式是每個文本處理應用的核心。作為快速參考的理想選擇,《正則表達式口袋參考》涵蓋了 Perl 5.8、Ruby(包括一些即將推出的 1.9 功能)、Java、PHP、.NET 和 C#、Python、vi、JavaScript 以及 PCRE 正則表達式庫的正則表達式 API。

這本簡潔且易於使用的參考書將一個強大的文本和數據操作工具放在你的指尖。正則表達式由符號和文本的混合組成,可以成為創造力、卓越編程和優雅解決方案的出口。《正則表達式口袋參考》提供了正則表達式、模式匹配、元字符、模式和結構的介紹,然後為每個語言 API 提供單獨的部分,包含完整的正則表達式列表,包括:
- 每個語言 API 支援的元字符
- Ruby、Java、.NET 和 C# 的正則表達式類和介面
- Perl 5.8 的正則表達式運算符
- Python 的正則表達式模組對象和函數
- PHP 和 vi 編輯器的模式匹配函數
- JavaScript 的模式匹配方法和對象
- 每種語言的 Unicode 支援

《正則表達式口袋參考》提供了大量範例和其他資源,總結了執行這一關鍵文本處理功能的複雜規則,並以友好且組織良好的格式呈現這一常常令人困惑的主題。這本指南是理想的工作夥伴。

**目錄**

關於本書
正則表達式和模式匹配介紹
正則表達式元字符、模式和結構
Unicode 支援
正則表達式食譜
食譜
Perl 5.8
支援的元字符
正則表達式運算符
Unicode 支援
範例
其他資源
Java (java.util.regex)
支援的元字符
正則表達式類和介面
Unicode 支援
範例
其他資源
.NET 和 C#
支援的元字符
正則表達式類和介面
Unicode 支援
範例
其他資源
PHP
支援的元字符
模式匹配函數
範例
其他資源
Python
支援的元字符
re 模組對象和函數
Unicode 支援
範例
其他資源
Ruby
支援的元字符
面向對象介面
Unicode 支援
範例
JavaScript
支援的元字符
模式匹配方法和對象
範例
其他資源
PCRE
支援的元字符
PCRE API
Unicode 支援
範例
其他資源
Apache 網頁伺服器
支援的元字符
RewriteRule
匹配指令
範例
vi 編輯器
支援的元字符
模式匹配
範例
其他資源
Shell 工具
支援的元字符
其他資源
索引