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?

Regex syntax is dense and easy to half-remember. This is a quick, searchable reference for the patterns you need: anchors, character classes, quantifiers, groups, lookarounds, and flags. Rather than hunt through documentation or Stack Overflow, click any pattern to copy it straight into your editor, or use the live filter to find what you're looking for in seconds.

When to use it

How to use it

Common gotchas