Regex Cheatsheet

Quick reference: anchors, character classes, quantifiers, groups, lookarounds, flags. Click any pattern to copy.

Click any pattern in the table to copy it. Examples are illustrative.

What is this for?

A printable, searchable summary of the bits of regex syntax you keep half-remembering. The tables here cover the major categories — anchors, character classes, quantifiers, groups, lookarounds, flags — plus a starter set of common patterns. Click any pattern to copy it; type in the filter to narrow down. Pair this with the Regex Tester to actually try the patterns against text.

When to use it

Common gotchas