Regex Tester

Test and debug regular expressions with live matching and detailed explanations

Regular Expression Pattern
/ /
Global (g) Case Insensitive (i) Multiline (m) Dot All (s) Unicode (u)
Test String
Match Results

Enter a regex pattern and test string to see matches

Pattern Explanation

Explanation will appear here

0
Matches Found
0
Groups Captured
0ms
Execution Time
0
Pattern Length
Regex Cheatsheet
Character Classes
[abc] - Any of a, b, or c
[^abc] - Not a, b, or c
[a-z] - Character between a and z
\d - Digit (0-9)
\w - Word character (a-z, A-Z, 0-9, _)
Anchors
^ - Start of string
$ - End of string
\b - Word boundary
Quantifiers
a* - 0 or more of a
a+ - 1 or more of a
a? - 0 or 1 of a
a{3} - Exactly 3 of a
a{3,} - 3 or more of a
Groups & Lookarounds
(abc) - Capture group
(?:abc) - Non-capture group
(?=abc) - Positive lookahead
(?!abc) - Negative lookahead