All Tools

Regex Tester

Test regular expression patterns in real-time with match highlighting

Pattern
/ /
.
Any character except newline
\\d
Digit [0-9]
\\w
Word char [a-zA-Z0-9_]
\\s
Whitespace
\\b
Word boundary
^
Start of string/line
$
End of string/line
*
0 or more
+
1 or more
?
0 or 1 (optional)
{n,m}
Between n and m times
[abc]
Character class
[^abc]
Negated class
(abc)
Capture group
(?:abc)
Non-capture group
a|b
Alternation (or)
(?=abc)
Positive lookahead
(?!abc)
Negative lookahead