Regex Tester & Debugger

Test, validate, and debug regular expressions with real-time matching

/ /
Test String Length: 0 Lines: 0

Matches

Total Matches
0
Unique Matches
0
Match Length
0
No matches found. Enter a regex pattern and test string.

Regular Expression Reference

Anchors

^ - Start of string
$ - End of string
\b - Word boundary
\B - Non-word boundary

Character Classes

\d - Digit [0-9]
\w - Word [a-zA-Z0-9_]
\s - Whitespace
. - Any character (except newline)

Quantifiers

* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly n times

Groups

(abc) - Capturing group
(?:abc) - Non-capturing
\1 - Backreference
(?=abc) - Lookahead