Regex Cheat Sheet
A searchable quick reference for regular expression tokens, with what each one matches.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
A quick reference for regular expressions. Find the common tokens for character classes, anchors, quantifiers, groups, and flags, each with its meaning and a short example. Use the search box to filter the rows. Runs entirely in your browser.
Character classes
Anchors and boundaries
Quantifiers
Groups and alternation
Flags
How to Use Regex Cheat Sheet
- Browse the reference. Tokens are grouped by what they do.
- Search to filter. Type to narrow down to the token you need.
- Read the meaning. Each token shows what it matches with an example.
- Use it in your pattern. Copy the token into your own regular expression.
Frequently Asked Questions
What does it cover?
The common regular expression tokens for character classes, anchors, quantifiers, groups, and escapes, each with a short explanation.
Can I search it?
Yes. Type in the search box to filter the reference down to the tokens that match what you are looking for.
Which flavor of regex is this?
It follows the JavaScript regular expression syntax, which is close to most other common engines.
Is anything uploaded?
No. The reference runs entirely in your browser, so nothing leaves the tab.
Is it free?
Yes. Every tool here is free to use with no sign up.
Related Tools
Regex Generator →
Generate a ready-made regular expression for common patterns like email, URL, and date.
Regex Generator from Text →
Generate a regular expression from example text, generalizing digits, letters, and spaces.
Regex Tester →
Test a regular expression against your text, with flags, and see every match.
AI Token Counter →
Count the tokens in your text and estimate the API cost across GPT, Claude…
Android AssetLinks JSON Generator - App Links →
Android AssetLinks JSON Generator files for Android App Links. Configure package names and SHA-256…
Convert ASCII to Binary →
Convert ASCII to Binary tool. Convert text to binary and binary to text. 100%…
Base32 Encoder/Decoder →
Free Base32 encoder and decoder tool. Encode or decode Base32 strings online. 100% client-side,…
Base58 Encoder/Decoder →
Free Base58 encoder and decoder tool. Encode or decode Base58 strings like Bitcoin addresses.…
Base64 Encoder and Decoder →
Base64 Encoder and Decoder - Convert text strings into Base64 format or decode Base64…
BBCode to HTML Converter →
Generate standard semantic HTML arrays translating classic forum BBCode syntax cleanly explicitly mappings independently…
Convert Binary to Hex →
Convert Binary to Hex tool. Convert binary numbers to hex instantly. 100% client-side, instant,…
Convert BSON to JSON →
Convert MongoDB BSON hex dumps to readable JSON in your browser. Free, offline, client-side…