HomeDev ToolsRegex Tester
🔍

Regex Tester

Test and debug regular expressions with live match highlighting

Test, debug, and learn regular expressions in real time. Paste your pattern and test string to instantly see matches highlighted, capture groups, and match details.

//g
g=global i=case-insensitive m=multiline s=dotall

Quick Reference

.Any character
\dDigit [0-9]
\wWord char [a-zA-Z0-9_]
\sWhitespace
^Start of string
$End of string
*Zero or more
+One or more
?Zero or one
{n}Exactly n times
(abc)Capture group
(?:abc)Non-capture group

Frequently Asked Questions

JavaScript regex engine is used, supporting standard syntax including lookaheads, capture groups, and all common flags.
Yes. Use the m flag to enable multiline matching.
No — matching runs entirely in your browser using JavaScript's built-in RegExp engine. Nothing is uploaded anywhere.
Yes — if your pattern uses named groups like (?<year>\d{4}), each match lists the captured group values alongside the full match.

Learn More

dev
Regex Cheat Sheet 2026 — The Patterns You'll Actually Use (Email, URL, Phone, Password & More)
7 min read