Regex Tester

Test regular expressions and preview matches in real-time.

0 characters
0 matches

Enter a regular expression and test string to see matches

Quick Reference

Character Classes

. Any character except newline

\d Digit (0-9)

\w Word character (a-z, A-Z, 0-9, _)

\s Whitespace (space, tab, newline)

Anchors

^ Start of string

$ End of string

\b Word boundary

Quantifiers

* 0 or more

+ 1 or more

? 0 or 1

{n} Exactly n

Groups

(...) Capturing group

(?:...) Non-capturing group

\1 Backreference to group #1