Test regular expressions and preview matches in real-time.
Enter a regular expression and test string to see matches
. Any character except newline
\d Digit (0-9)
\w Word character (a-z, A-Z, 0-9, _)
\s Whitespace (space, tab, newline)
^ Start of string
$ End of string
\b Word boundary
* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n
(...) Capturing group
(?:...) Non-capturing group
\1 Backreference to group #1