Video description
The regular expression (regex) has been around for over 60 years and it's still poorly understood—and incorrectly used—by most developers. Why? Mainly because regexes are rarely taught to developers; they’re just left to "pick them up" as they go along. This means most developers don't know what regexes do, how they work, how to use them, how to optimize them, or how to maintain them. In this course, regex expert Damian Conway changes this equation. He explains regexes in detail and shows you the power of these amazing and efficient tools. Bonus: learners will receive a 12-page cheat-sheet for download that shows all major regex constructs across six dialects.
- Learn how to think about regexes and stop being confused, confounded, or terrified by them
- Master what each regex component does and the problems it can solve
- Discover the pitfalls of each regex component and learn how to avoid these mistakes
- Learn why regexes run slowly and how to optimize them (sometimes by orders of magnitude)
- Explore ways to decompose and refactor a regex
- Gain experience building complex regexes that work
Dr. Damian Conway is a widely sought-after speaker, trainer, and author. He runs Thoughtstream, an international IT training company serving clients throughout Australasia, North America, and Europe; he designed the regex mechanism for Perl 6; and he's written multiple O'Reilly titles, including Modern Perl Best Practices and Mastering VIM.
Table of contents
- Regexes—Welcome to The Course
- How Regexes Work
-
How to Build a Regex
- The Regex Instruction Set
- Building Regexes—Metasyntax
- Building Regexes—Regex Control Structures
- Building Regexes—Looping, Unlooping, Snooping, and Swooping
- Building Regexes—Extracting Substrings
- Building Regexes—Assertions
- Building Regexes—Context and Boundaries
- Building Regexes—Match Limiting
- Building Regexes—Rematching Captures
-
How to Build Better Regexes
- Correct Regexes—Extended Formatting
- Correct Regexes—Named Captures
- Correct Regexes—Pattern (De)composition
- Efficient Regexes—What's Taking So Long?
- Efficient Regexes—Loop Optimization
- Efficient Regexes—Eliminating Backtracking in Loops
- Efficient Regexes—Eliminating Backtracking in Alternations
- Efficient Regexes—Refactoring for Better Performance
- Building Powerful Regexes
- How to Build Better Regexes—Conclusion
Product information
- Title: Understanding Regular Expressions
- Author(s):
- Release date: August 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491996294
You might also like
book
An Introduction to Regular Expressions
The ubiquity of regular expressions must mean they offer universal utility, and, surprisingly, they do not …
book
Regular Expressions Cookbook
This cookbook provides more than 100 recipes to help you crunch data and manipulate text with …
book
Regular Expressions Cookbook, 2nd Edition
Take the guesswork out of using regular expressions. With more than 140 practical recipes, this cookbook …
book
Mastering Regular Expressions, 3rd Edition
Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard …