Updated: August 2026 • Verified v1.2

JavaScript Regular Expression Cheat Sheet & Tester

Developer ToolsHigh Usage

Local Browser Execution: Your input is processed locally in your browser and is not sent to UTL servers.
RegExp Engine: /pattern/flags ➔ RegExp.prototype.test(string)
Was this calculation helpful?

Understanding Your Results

Provides a searchable master directory of regex tokens with descriptions, 1-click token copy, and a live pattern vs string test validator.

Practical Guidance & Next Steps

Lookaheads `(?=...)` and lookbehinds `(?<=...)` match patterns without consuming characters from the target string.

What is this?

A developer reference utility that catalogs JavaScript regular expression tokens and provides an instant pattern testing sandbox.

How does it work?

1. Search for regex tokens or browse categories (Character Classes, Quantifiers, Lookarounds, Anchors). 2. Test regex patterns against sample strings in the sandbox. 3. Copy regex tokens in 1 click.

Why use it?

Quickly recalls complex regex syntax without searching through lengthy documentation.

Technical Scope & Calculation Limitations

Tests standard JavaScript ECMAScript RegExp engine syntax.

Frequently Asked Questions

`\d` matches any digit character (0-9), while `\D` matches any character that is NOT a digit.
Windows Desktop & Widget Options

Want this capability on your Windows desktop?

All Windows widgets
Desktop App
9.8/10

DevToys — Swiss Army Knife for Developers

Free open-source offline desktop app for Windows featuring 30+ formatters, converters, and hash tools.

FreeEasy InstallLow RAM
By Etienne Baudoux (DevToys Team)View Widget
Complementary Utilities

Related Tools for Your Workflow

All Developer Tools tools
HTML5 / React / TypeScriptStatic Utility
HTML5 / React / TypeScriptStatic Utility
HTML5 / React / TypeScriptStatic Utility