literal
char class
group
quantifier
anchor
step 0 / 0
Enter a pattern and test string to trace the engine.
Pattern
—
String position
—
Action
—
Failed attempts
0
The trace shows a simplified view of how a backtracking engine walks your pattern across the text — where it matches, where it fails, and where it moves on.
Replacementuse $1 $2 for groups · $& for whole match
↦
Result
Extracted matches
Pieces (text split on your pattern)
Compiled state machine (Thompson NFA)
ε = epsilon (free) transition
Performance profile
Runs your pattern against inputs of growing length and plots match time. A straight line is healthy; an upward curve reveals catastrophic backtracking.
Use this regex in your code
✓ Should match
✗ Should NOT match