Regex Tester

Write a regular expression and test it against your string โ€” matches highlighted live.

/ /
Flags:
Test String
Match Preview
Matches will be highlighted here...

Quick Reference

PatternMeaningPatternMeaning
.Any character\dDigit [0-9]
^Start of string\wWord char [a-zA-Z0-9_]
$End of string\sWhitespace
*0 or more[abc]Character class
+1 or more[^abc]Negated class
?0 or 1(abc)Capture group
{n,m}n to m times(?:abc)Non-capture group
|Alternation(?=abc)Lookahead
Translate Page