Free Regex Tester and Debugger

Test and debug regular expressions live in your browser. See every match and capture group as you type, with flags support. Free, no signup.

Matches update as you type. Everything runs in your browser.

What is a regex tester?

A regular expression (regex) is a pattern that describes a set of strings, used for searching, validating, and extracting text. A regex tester lets you write a pattern, run it against sample text, and see exactly what it matches, so you can build and debug the expression before you drop it into your code. It is one of the fastest ways to get a tricky pattern right.

How to use this regex tester

Type your pattern in the Regular expression box and any flags (such as g, i, m, s) in the Flags box, then paste sample text in the Test string box. Matches update as you type: each result shows the matched text, its index, and the value of every capture group. Everything runs in your browser, so nothing you paste is uploaded.

Common flags

  • g global, find all matches instead of stopping at the first
  • i case-insensitive
  • m multiline, so ^ and $ match at line breaks
  • s dotall, so . also matches newlines

Regex FAQ

Which regex flavour is this? The JavaScript (ECMAScript) engine, the same one browsers and Node.js use.

Why does my pattern not match? Check that special characters are escaped, that the g flag is set when you expect multiple matches, and that anchors like ^ and $ behave as you intend with the m flag.

Is my data safe? Yes. The tester runs entirely in your browser and never sends your pattern or text anywhere.

Outgrown your testing tools?

Load test websites and APIs from 25+ cloud regions, monitor page speed and uptime, and get AI analysis that explains your results in plain English.Start for free
jmeter cloud load testing tool

Is your website ready for traffic spikes?

Run a free cloud load test in minutes and see how your site behaves under pressure. No credit card needed.

Run a free load test

Get dev tips and new free tools by email

×