Test a regular expression and see every match and group, live.
Guide
Paste your input
Text, JSON or tokens · Runs in your browser.
See the result
Copy it
You get the result, live.
Test JavaScript regular expressions live with every match and capture group highlighted. Toggle global (`g`), case-insensitive (`i`), multiline (`m`), dotAll (`s`), and unicode (`u`) flags, and preview replacements using `$1` groups.
Next: Smart notepad · Random data generator · Diff checker
More in Developer
Test patterns, see every match
Pattern
Flags
1 line62 chars
Write to ana@example.com or BEN@test.com, not ana@example.org.
| # | Match | $1 | $2 |
|---|---|---|---|
| 1 | ana@example.com | ana | example |
| 2 | BEN@test.com | BEN | test |
2 matches2 lines · 1 KB
Replace with (optional)