Regular Expressions in Perl
Introduction
Regular expressions (also known as "regexes", "regexps" and "re's") allow the Perl programmer to easily locate simple or complex patterns in text, and process the text accordingly. Many beginners are intimidated by regular expressions, but they are well-worth to invest the time to learn and understand because processing text character-by-character would be slower, take more code and would not be idiomatic.
Tutorials
perlretut
The built-in regular expressions tutorial in the Perl 5 distribution. Also see the following documents:
- perlrequick - Quick introduction to regular expressions.
- perlreref - Regular expression reference.
- perlre - regular expression description in Perl - not written in a very accessible way.
Modern Perl (the Book)
Modern Perl covers Regular Expressions.
Beginning Perl
Chapter 5 of "Beginning Perl" discusses regular expressions.
Perl for Perl Newbies Series
The second presentation in the series introduces regular expressions.
