Day 10. Doing More with Regular Expressions
Yesterday, we explored the basics of regular expressions. You learned about the basic metacharacters and the ways you can use them to find patterns in strings. Today, in part two of our regular expression saga, we'll build on that background and explore other more complex ways in which regular expressions can be used. The things you'll learn about today include
Extracting what was matched by a regular expression
Notes on using patterns in scalar and list context
Using patterns for search and replace
More about using the split function
Matching patterns over multiple lines
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.