Mastering Regular Expressions
掌握正则表达式的写法和使用Chapter 1. Introduction to Regular Expressions Section 1.1. Solving Real Problems Section 1.2. Regular Expressions a Language Section 1.3. The Regular-Expression Frame of Mind Section 1.4. Egrep Metacharacters Section 1.5. Expanding the Foundation Section 1.6. Personal Glimpses Section 1.7. Quiz Answer Chapter 2. Extended Introductory Examples Section 2.1. About the Examples Section 2.2. Matching Text with Regular Expressions Section 2.3. Modifying Text with Regular Expressions Section 2.4. Quiz Answers Chapter 3. Overview of Regular Expression Features and Flavors Section 3.1. A Casual Stroll Across the Regex Landscape Section 3.2. Care and Handling of Regular Expressions Section 3.3. Strings, Character Encodings, and Modes Section 3.4. Common Metacharacters and Features Section 3.5. Guide to the Advanced Chapters Chapter 4. The Mechanics of Expression Processing Section 4.1. Start Your Engines! Section 4.2. Match Basics Section 4.3. Regex-Directed Versus Text-Directed Section 4.4. Backtracking Section 4.5. More About Greediness and Backtracking Section 4.6. NFA, DFA, and POSIX Section 4.7. Summary Section 4.8. Quiz Answers Chapter 5. Practical Regex Techniques Section 5.1. Regex Balancing Act Section 5.2. A Few Short Examples Section 5.3. HTML-Related Examples Section 5.4. Extended Examples Chapter 6. Crafting an Efficient Expression Section 6.1. A Sobering Example Section 6.2. A Global View of Backtracking Section 6.3. Benchmarking Section 6.4. Common Optimizations Section 6.5. Techniques for Faster Expressions Section 6.6. Unrolling the Loop Section 6.7. The Freeflowing Regex Section 6.8. In Summary: Think! Section 6.9. Quize Answers Chapter 7. Perl Section 7.1. Regular Expressions a Language Component Section 7.2. Perl's Regex Flavor Section 7.3. Regex-Related Perlisms Section 7.4. The qr/···/ Operator and Regex Objects Section 7.5. The Match Operator Section 7.6. The Substitution Operator Section 7.7. The Split Operator Section 7.8. Fun with Perl Enhancements Section 7.9. Perl Efficiency Issues Section 7.10. Final Comments Chapter 8. Java Section 8.1. Judging a Regex Package Section 8.2. Object Models Section 8.3. Packages, Packages Section 8.4. Sun's Regex Package Section 8.5. A Quick Look at Jakarta-ORO Chapter 9. .NET Section 9.1. .NET's Regex Flavor Section 9.2. Using .NET Regular Expressions Section 9.3. Core Object Details Section 9.4. Static "Convenience" Functions Section 9.5. Support Functions Section 9.6. Advanced .NET
1.43MB
文件大小:
评论区