Regex Tester

Write a regex pattern, paste your test string, and see matches highlighted in real time. Capture groups shown below.

Matched Output

Enter a pattern and test string to see matches...

🟢📖 Regex Quick Reference

.Any character except newline
\dDigit [0-9]\DNon-digit
\wWord char [a-zA-Z0-9_]\WNon-word
\sWhitespace\SNon-whitespace
+One or more*Zero or more
?Zero or one{n,m}n to m times
^Start of line$End of line
( )Capture group(?: )Non-capturing group
|Alternation (OR)[abc]Character class
(?= )Lookahead(?<= )Lookbehind