Regex Tester

Write and test regular expressions in real time. See matches highlighted with full capture group details.

Regular Expression

/ /
Ready
Test String

Matches

Matches will appear here as you type…

Quick Reference

.
Any character (except newline)
\d
Any digit 0–9
\w
Word character [a-zA-Z0-9_]
\s
Whitespace character
^
Start of string/line
$
End of string/line
*
0 or more (greedy)
+
1 or more (greedy)
?
0 or 1 (optional)
( )
Capture group
[ ]
Character class
|
Alternation (OR)
Back to all tools