Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET, 2/e (Paperback)

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#
- ...