Regex Tester
Test regular expressions with live match highlighting.
Match Results
Quick Reference
\d - Digit (0-9)
\w - Word character
\s - Whitespace
. - Any character
\w - Word character
\s - Whitespace
. - Any character
+ - One or more
* - Zero or more
? - Zero or one
{n,m} - Between n and m
* - Zero or more
? - Zero or one
{n,m} - Between n and m
^ - Start of string
$ - End of string
| - OR operator
[abc] - Character class
$ - End of string
| - OR operator
[abc] - Character class
FAQ
Flags modify how the regex behaves: 'g' finds all matches, 'i' ignores case, and 'm' treats each line separately.
Use a backslash before special characters: \. \? \+ \* \[ \] etc.