Main Navigation

Content

Regular Expressions in Perl

Learn Perl Now!
And get a job doing 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:

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.

Share/Bookmark

Sidebar

Footer