Regular expressions can make virtually every developer more productive, but many programmers don't use them because they've never learned how. In Learning Regular Expressions, best-selling author Ben Forta solves that problem. Forta's expert tutorial organizes regex into a series of easy-to-follow hands-on lessons focused on solving the specific problems you're likely to encounter most often. Instead of dwelling on syntax, terminology, and arcane scenarios, he guides you through concepts and techniques you'll use every day -- starting with simple text matches and working up to powerful backreferences, conditional evaluation, and look-ahead processing. Forta's clear, practical examples are implemented in multiple languages, so you can find code you can immediately use to get the job done.
Ben Forta is Adobe Systems' Senior Director of Education Initiatives. He is also the author of numerous books on SQL, regular expressions, ColdFusion, Windows development, JSP, and more. His book Teach Yourself SQL in 10 Minutes is the best-selling book on SQL of all time.
Introduction 1. Introducing Regular Expressions 2. Matching Single Characters 3. Matching Sets of Characters 4. Using Metacharacters 5. Repeating Matches 6. Position Matching 7. Using Subexpressions 8. Using Backreferences 9. Looking Ahead and Behind 10. Embedding Conditions Appendix A. Regular Expressions in Popular Applications and Languages Appendix B. Regular Expression Solutions to Common Problems Appendix C. The Regular Expression Tester