🔍
Developer Tools

Regex Tester

Test regular expressions with live match highlighting, group capture, and a built-in cheat sheet.

//
No matches
Quick Reference — click to insert
\dDigit
\wWord char
\sWhitespace
.Any char
^Start
$End
\bWord boundary
[abc]Char set
[^abc]Negated set
(a|b)a or b
a+1+ of a
a*0+ of a
a?0 or 1
a{3}Exactly 3
(...)Group
(?:...)Non-capture

How to use the Regex Tester

Enter your regular expression in the pattern box and your test string below it. Matches are highlighted instantly. Use the flags checkboxes to enable case-insensitive, global or multiline matching. Hover over a match to see its position.