Regex Tester
Test JavaScript regular expressions live with match highlighting, capture groups and replace preview. Includes a cheat sheet. Free regex tester.
✓ 100% free ✓ No sign up ✓ Runs in your browser — nothing uploaded
//
Matches highlighted (2)
Contact alice@example.com or bob@test.com.
Not an email: hello@world
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | alice@example.com | 8 | $1=alice $2=example |
| 2 | bob@test.com | 29 | $1=bob $2=test |
Cheat sheet
\d digit\w word char\s whitespace. any char^ $ start / end* 0 or more+ 1 or more? optional{2,5} 2 to 5 times[abc] any of a,b,c(…) capture group(?<name>…) named groupa|b a or b\b word boundaryHow to use Regex Tester
- 1Open Regex Tester — it works right on this page.
- 2Use the controls above.
- 3Copy or download the result. No sign up needed.
Questions
Is Regex Tester free?
Yes. Regex Tester is 100% free with no limits, no watermark, no sign up and no email required.
Is my data sent anywhere?
No. Everything is calculated locally in your browser. Nothing you type is sent to or stored on any server.
Does Regex Tester work on my phone?
Yes. Regex Tester works in any modern browser on iPhone, Android, Windows, Mac, Linux and Chromebook. No app or install needed.
Do I need to create an account?
Never. There is no sign up, no login, no email and no paywall. Just open the page and use it.