Free Tools Tools List With Price Combo Packages Single Tools Registration Login
  1. Home
  2. Free Tools
  3. Developer & security

Regex Tester

Test JavaScript regular expressions with live match highlighting.

Free, no sign-up Private: runs on your device
Loading tool…

How to use the Regex Tester

  1. 1
    Type the pattern and flagsFor example \d+ with g.
  2. 2
    Paste test textMatches are highlighted live.
  3. 3
    Check 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.

See all premium tools