Regex Tester
Test JavaScript regular expressions with live match highlighting.
How to use the Regex Tester
- 1Type the pattern and flagsFor example \d+ with g.
- 2Paste test textMatches are highlighted live.
- 3Check the groups tableFor capture groups.
What is the Regex Tester?
Regular expressions are powerful but easy to get wrong. Type a pattern and flags, paste test text, and see every match highlighted with its position and captured groups. Errors in the pattern are explained immediately.
Type a pattern and flags to see every match and group.
When to use it
- Validating phone numbers and emails.
- Search and replace patterns.
- Learning regex.
Questions
Which regex flavour is this?
JavaScript regular expressions, the same used in browsers and Node.js.
Is the Regex Tester free?
Yes. It is completely free with no sign-up and no watermark. Use it as often as you like.
Are my files uploaded to your server?
No. This tool runs inside your browser, so your files and text stay on your own phone or computer.
Does it work on mobile?
Yes, it works in Chrome, Safari and other modern browsers on Android, iPhone, Windows and Mac.
Need the full premium tools?
Get Ahrefs, Semrush, ChatGPT Plus, Canva Pro and 50+ more premium tools at group-buy prices. Pay with bKash, Nagad, Rocket or card and get access in minutes.
chatgpt$3.27/30 Days
Claude$6.15/30 Days
gemini$2.87/30 Days
deepseek$2.04/30 Days
Ahrefs$7.38/30 Days
semrush$2.45/30 Days
