RegexLab

Write a pattern, watch it match in real time — with capture groups, live highlighting, and match breakdown.

/ /
Test String input
Highlighted Result live
// matches will be highlighted here
Match Breakdown 0 matches
No matches yet — try the example or write your own pattern.
\dany digit
\wword character
\swhitespace
.any character
^ $start / end
*0 or more
+1 or more
?0 or 1
{n,m}between n and m
[abc]any of a, b, c
(...)capture group
(?:...)non-capturing
a|ba or b
\bword boundary
(?=...)lookahead
(?!...)neg. lookahead
0
Total matches
0
Capture groups
0
Chars matched
Pattern validity