Skip to content

Home

Regular Expressions Cheat Sheet

Anchors

๐Ÿ’ฌ Note

Anchors are non-quantifiable (i.e. cannot be followed by a quantifier).

Character sequences

๐Ÿ’ก Tip

Use \ to escape special characters (e.g. \, /, [, ], (, ), {, } etc.).

Quantifiers

๐Ÿ’ฌ Note

a is any valid quantifiable expression.

Groups

Flags

Note that this cheatsheet is meant only as a starting point and is by no means a complete guide to all the features and nuances of regular expressions.

Dive deeper

More like this

Start typing a keyphrase to see matching articles.