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...
Concise and easy to use, this handy guide offers programmers a complete overview of the syntax and semantics of regular expressions, which are at the heart of every text-processing application.
About This Book 1Introduction to Regexes and Pattern Matching 3Regex Metacharacters, Modes, and Constructs 5Unicode Support 13Regular Expression Cookbook 13Recipes 14Perl 5.8 16Supported Metacharacters 17Regular Expression Operators 21Unicode Support 23Examples 24Other Resources 25Java (java.util.regex) 26Supported Metacharacters 26Regular Expression Classes and Interfaces 30Unicode Support 35Examples 36Other Resources 38.NET and C# 38Supported Metacharacters 38Regular Expression Classes and Interfaces 42Unicode Support 47Examples 47Other Resources 49PHP 50Supported Metacharacters 50Pattern-Matching Functions 54Examples 56Other Resources 58Python 58Supported Metacharacters 58re ModuleObjects and Functions 61Unicode Support 64Examples 65Other Resources 66RUBY 66Supported Metacharacters 67Object-Oriented Interface 70Unicode Support 75Examples 75JavaScript 77Supported Metacharacters 77Pattern-Matching Methods and Objects 79Examples 82Other Resources 83PCRE 83Supported Metacharacters 84PCRE API 89Unicode Support 92Examples 92Other Resources 96Apache Web Server 96Supported Metacharacters 96RewriteRule 99Matching Directives 102Examples 102vi Editor 103Supported Metacharacters 103Pattern Matching 106Examples 108Other Resources 108Shell Tools 109Supported Metacharacters 109Other Resources 114Index 115