Regex Cheatsheet — Free Online Tool

Regex patterns with live test.. Regex Cheatsheet is a free online tool from the ToolsRift Developer Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading Regex Cheatsheet

How to use Regex Cheatsheet

Browse regex building blocks by category and try any pattern in the live tester against your own text to see exactly what it matches before using it in code.

Frequently asked questions

What does \d match?

\d matches any digit 0-9. Its opposite \D matches any non-digit, and similar shorthands exist for word (\w) and whitespace (\s) characters.

What is the difference between * and +?

* matches zero or more of the preceding token, while + requires at least one, so a+ needs one or more 'a' characters.

What are anchors ^ and $?

^ asserts the start of the string or line and $ the end, letting you match patterns only at those boundaries.

More Developer Tools

HTTP Headers Ref
Common request/response headers.
Color Names Ref
CSS named colors palette.
Lorem Ipsum Advanced
Words/sentences/paragraphs generator.
Hash Generator Advanced
MD5/SHA1/SHA256/SHA512 side-by-side.
Color Gradient CSS
Linear/radial/conic gradient generator.
Box Shadow Generator
Live CSS box-shadow preview.

← View all Developer Tools