Table of Contents
1: Introduction to Regular Expressions
Regular Expressions as a Language
The Regular-Expression Frame of Mind
If You Have Some Regular-Expression Experience
Matching Any Character with Dot
Ignoring Differences in Capitalization
Parentheses and Backreferences
The Goal of a Regular Expression
Regular Expression Nomenclature
2: Extended Introductory Examples
Matching Text with Regular Expressions
Toward a More Real-World Example
Side Effects of a Successful Match
Intertwined Regular Expressions
Modifying Text with Regular Expressions
Example: Prettifying a Stock Price
Adding Commas to a Number with Lookaround
3: Overview of Regular Expression Features and Flavors
A Casual Stroll Across the Regex Landscape
The Origins of Regular Expressions
Care and Handling of Regular Expressions
Get Mastering Regular Expressions, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.