Regex Tester

Test and debug regular expressions in real-time

/ /

Test String

Regex Cheatsheet (Click to expand)

Character Classes
.Any character
\dDigit (0-9)
\wWord char
\sWhitespace
[abc]Any of a,b,c
Quantifiers
*0 or more
+1 or more
?0 or 1
{n}Exactly n
{n,m}n to m
Anchors & Groups
^Start
$End
\bWord boundary
(abc)Capture
a|ba or b
The Regex Tester is a powerful tool for testing and debugging regular expressions. Features include: real-time pattern matching with highlighted results, find & replace with capture group support, string splitting, flags support (global, case-insensitive, multiline, dotall, unicode), and a library of common patterns for emails, URLs, phone numbers, IP addresses, dates, credit cards, and more. Includes a comprehensive regex cheatsheet for quick reference.