Chapter 9. Getting Control—Regular Expression Metacharacters

Image

By the end of this chapter, you will be able to unravel and use the following regular expressions:

die unless (/^.+@[^\.].*\.[a-z]{2,}$/);$money =~ s/(?<=\d)(?=(\d\d\d)+(?!\d))/,/g

9.1 The RegExLib.com Library

Before getting deep into the weeds, let’s take a look at the regexlib.com Web site. This Web site allows you to search for a pattern and will show you a list of regular expression solutions and a rating on how well each one performs its pattern-matching task. Although the Web site may not be 100 percent Perlish in the way it handles regexes, it is ...

Get Perl by Example 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.