Regular Expressions

Yes, there’s more about regular expressions than we mentioned. Mastering Regular Expressions by Jeffrey Friedl (O’Reilly) is one of the best technical books we’ve ever read.[377] It’s half about regular expressions in general, and half about Perl’s regular expressions. It goes into detail about how the regular expression engine works internally and why one way of writing a pattern may be much more efficient than another. Anyone who is serious about Perl should read this book. See the perlre manpage (and its companion manpages perlretut and perlrequick in newer versions of Perl). And, there’s more about regular expressions in the Alpaca as well.

[377] And we’re not just saying that because it’s also published by O’Reilly. It’s a great book.

Get Learning Perl, Fourth Edition 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.