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