Regex Tester

/ /
Quick Reference
.Any character except newline
\dDigit (0-9)
\wWord character (a-z, A-Z, 0-9, _)
\sWhitespace
\bWord boundary
[abc]Character class: a, b, or c
[^abc]Not a, b, or c
a|ba or b
(...)Capture group
(?:...)Non-capture group
a*0 or more
a+1 or more
a?0 or 1
a{3}Exactly 3
a{3,}3 or more
a{3,6}Between 3 and 6
^Start of string/line
$End of string/line
(?=...)Positive lookahead
(?!...)Negative lookahead

How to Use

1

Enter your regex pattern and set flags

2

Type or paste your test string

3

See matches highlighted in real-time

𝕏 Share Facebook LinkedIn Reddit
Used 0 times on this device

More Free Tools