DH

Advanced Regex Tester

Test and debug regular expressions with real-time feedback and comprehensive analysis

Regular Expression Pattern
//
g

Drag and drop a file here, or click to select

Supports .txt, .log, .json, .csv files

0
Matches
0
Groups
0.00
ms
0
Characters
Quick Reference
\d
Any digit (0-9)
\d+ matches '123'
\D
Any non-digit
\D+ matches 'abc'
\w
Word character (a-z, A-Z, 0-9, _)
\w+ matches 'hello_123'
\W
Non-word character
\W+ matches '!@#'
\s
Whitespace character
\s+ matches spaces/tabs
\S
Non-whitespace character
\S+ matches 'text'
[a-z]
Lowercase letters
[a-z]+ matches 'hello'
[A-Z]
Uppercase letters
[A-Z]+ matches 'HELLO'
[0-9]
Any digit
[0-9]+ matches '123'
[^abc]
Not a, b, or c
[^abc]+ matches 'xyz'
*
0 or more
a* matches '', 'a', 'aaa'
+
1 or more
a+ matches 'a', 'aaa'
?
0 or 1
a? matches '', 'a'
{n}
Exactly n times
a{3} matches 'aaa'
{n,}
n or more times
a{2,} matches 'aa', 'aaa'
{n,m}
Between n and m times
a{2,4} matches 'aa' to 'aaaa'