Contents

  Icon

Regular expression overview

Anchors

Basic metacharacters

Character classes

Comments

Control and code

Grouping

Look around

Mode modifiers

Quantifiers

Specific characters

There is so much you can say about regular expressions, that I am not even going to try. In this section, you will just find a quick overview of (most) metacharacters and constructs.

If you want to learn more, there are countless ways to do that, but a deep and wonderful book abour regular expressions is Jeffrey Friedl’s, Mastering Regular Expressions, from O’Reilly Media. If you are just starting out with regular expressions, you might want to try something else first, though!