Regex Tester

Test your regular expressions in real-time with this interactive tool

Input

Regex Cheatsheet

Pattern Description
. Any character except newline
\w Word character (a-z, A-Z, 0-9, _)
\d Digit (0-9)
\s Whitespace (space, tab, newline)
[abc] Any of a, b, or c
[^abc] Not a, b, or c
^ Start of string
$ End of string
a* 0 or more of a
a+ 1 or more of a
a{3} Exactly 3 of a
a{3,} 3 or more of a
a{3,5} Between 3 and 5 of a
| a or b
(...) Capture group
(?:...) Non-capturing group
\1 First capture group

Results

0 matches found
Pattern:
Flags:
Source:
Is Valid: