Regex Tester
Test regular expressions against text with real-time highlighting and group capture display.
/
/
Enter a pattern and test string
Quick Reference
Characters
. | Any character except newline |
\d | Digit (0-9) |
\w | Word character (a-z, A-Z, 0-9, _) |
\s | Whitespace |
\b | Word boundary |
Quantifiers
* | 0 or more |
+ | 1 or more |
? | 0 or 1 |
{n} | Exactly n |
{n,m} | Between n and m |
Groups & Flags
(abc) | Capture group |
(?:abc) | Non-capture group |
[abc] | Character class |
a|b | Alternation |
^ / $ | Start / end of line |
Flags
g | Global (all matches) |
i | Case insensitive |
m | Multiline (^ $ per line) |
s | Dot matches newline |
u | Unicode support |