Going Deeper

Regular expressions are one of those things that you could write a whole book about and still not cover the extent to which they can be used. In the last two lessons, I've given you the basics of how to build and how to use regular expressions in your own programs. There are still many more features haven't been discussed, however, including many more metacharacters and regular expression forms specific to Perl. In this section I'll give you an overview of some of these other forms.

For more information about any aspect of regular expressions in Perl, the perlre man page can be quite enlightening. If you find yourself enjoying working with regular expressions, consider the book Mastering Regular Expressions, (Friedl, O'Reilly & Associates), ...

Get Sams Teach Yourself Perl in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.