Riassunto:
Introduces regular expressions and how they are used, discussing topics including metacharacters, nomenclature, matching and modifying text, expression processing, benchmarking, optimizations, and loops.
Contenuti:
Copyright; Dedication; Preface; The Need for This Book; Intended Audience; How to Read This Book; Organization; Typographical Conventions; Exercises; Links, Code, Errata, and Contacts; Personal Comments and Acknowledgments; Chapter 1: Introduction to Regular Expressions; 1.1 Solving Real Problems; 1.2 Regular Expressions as a Language; 1.3 The Regular-Expression Frame of Mind; 1.4 Egrep Metacharacters; 1.5 Expanding the Foundation; 1.6 Personal Glimpses; 1.7 Quiz Answer; Chapter 2: Extended Introductory Examples; 2.1 About the Examples; 2.2 Matching Text with Regular Expressions; 2.3 Modifying Text with Regular Expressions; 2.4 Quiz Answers; Chapter 3: Overview of Regular Expression Features and Flavors; 3.1 A Casual Stroll Across the Regex Landscape; 3.2 Care and Handling of Regular Expressions; 3.3 Strings, Character Encodings, and Modes; 3.4 Common Metacharacters and Features; 3.5 Guide to the Advanced Chapters; Chapter 4: The Mechanics of Expression Processing; 4.1 Start Your Engines!; 4.2 Match Basics; 4.3 Regex-Directed Versus Text-Directed; 4.4 Backtracking; 4.5 More About Greediness and Backtracking; 4.6 NFA, DFA, and POSIX; 4.7 Summary; 4.8 Quiz Answers; Chapter 5: Practical Regex Techniques; 5.1 Regex Balancing Act; 5.2 A Few Short Examples; 5.3 HTML-Related Examples; 5.4 Extended Examples; Chapter 6: Crafting an Efficient Expression; 6.1 A Sobering Example; 6.2 A Global View of Backtracking; 6.3 Benchmarking; 6.4 Common Optimizations; 6.5 Techniques for Faster Expressions; 6.6 Unrolling the Loop; 6.7 The Freeflowing Regex; 6.8 In Summary: Think!; 6.9 Quize Answers; Chapter 7: Perl; 7.1 Regular Expressions as a Language Component; 7.2 Perl's Regex Flavor; 7.3 Regex-Related Perlisms; 7.4 The qr/···/ Operator and Regex Objects; 7.5 The Match Operator; 7.6 The Substitution Operator; 7.7 The Split Operator; 7.8 Fun with Perl Enhancements; 7.9 Perl Efficiency Issues; 7.10 Final Comments; Chapter 8: Java; 8.1 Judging a Regex Package; 8.2 Object Models; 8.3 Packages, Packages, Packages; 8.4 Sun's Regex Package; 8.5 A Quick Look at Jakarta-ORO; Chapter 9: .NET; 9.1 .NET's Regex Flavor; 9.2 Using .NET Regular Expressions; 9.3 Core Object Details; 9.4 Static "Convenience" Functions; 9.5 Support Functions; 9.6 Advanced .NET; About the Author; Colophon;
Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.