Regular expressions

Procmail implements a form of regular expressions that operates slightly differently than other UNIX utilities. Here we cover the basic differences and guide the new user into the powerful world of regular expressions, their meanings, implementations, and uses.

We have already seen that Procmail matches are case insensitive unless the D flag is used. This is also true for regular expressions. Procmail also uses multiline matches by default.

Introduction to regular expressions

New users to the world of Linux and programming in general, may not be aware of the powerful features that regular expressions bring to processing data. In its simplest form, regular expressions can be understood as searching for a phrase or pattern anywhere ...

Get Linux E-mail 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.