Day 9. Pattern Matching with Regular Expressions

As I'm sure you've noticed, I've been gradually introducing regular expressions since nearly the beginning of this book. In this lesson, it's time to focus our full attention on how regular expressions work. Pattern matching is more than just searching for some set of characters in your data; it's a way of looking at data and processing that data in a manner that can be incredibly efficient and amazingly easy to program. Many Perl programmers use regular expressions in nearly every program that they write.

Today, we'll dive deep into regular expressions, why they're useful, how they're built, and how they work. Tomorrow we'll continue the discussion and cover more advanced uses of regular expressions. ...

Get Sams Teach Yourself Perl in 21 Days, Second 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.