Regular Expression Tester

Test, debug, and visualize regular expressions in real-time with comprehensive match analysis and detailed explanations.

Regex Tester & Debugger

Regular Expression

0 characters

Test String

0 characters

Regex Options

Regex Analysis

2
Matches Found
Valid pattern
0
Capture Groups
No groups
0
Execution Time
ms
1
Complexity
Simple

Match Visualization

Matches
Capture Groups
Match Details
Regex Explanation
Replace Results

Regex Cheatsheet

Character Classes
.
Any character except newline
\d
Digit (0-9)
\w
Word character (a-z, A-Z, 0-9, _)
\s
Whitespace (space, tab, newline)
[abc]
Any of a, b, or c
Quantifiers
*
0 or more times
+
1 or more times
?
0 or 1 time (optional)
{n}
Exactly n times
{n,}
n or more times
Anchors & Boundaries
^
Start of string/line
$
End of string/line
\b
Word boundary
\B
Not a word boundary
\A
Start of string
Groups & Lookarounds
(abc)
Capture group
(?:abc)
Non-capturing group
(?=abc)
Positive lookahead
(?!abc)
Negative lookahead
(?<=abc)
Positive lookbehind

Replace Options

Real-time Testing

Test regular expressions in real-time with instant feedback and match highlighting

Visual Match Display

See exactly what your regex matches with color-coded highlighting and visualization

Detailed Analysis

Get comprehensive analysis including match count, capture groups, and execution time

Learning Resources

Access regex cheatsheet, explanations, and examples to learn and improve your skills