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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access