Skip to content
Convertto

Regex Tester

Test regular expressions against sample text and see every match with its capture groups.

To test a regular expression, enter your pattern and sample text. Every match is listed with its position and all capture groups, including named groups. Patterns use JavaScript regex syntax, so what works here works in Node and the browser.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript). It differs from PCRE in a few places — no atomic groups or possessive quantifiers, and lookbehind support depends on the browser engine.

Why does my pattern match nothing?

The most common cause is unescaped special characters. A literal dot must be written as \. and a literal slash inside a character class needs escaping too.

How to use the regex tester

  1. 1Enter or paste your pattern.
  2. 2Choose the flags.
  3. 3Enter or paste your test text.
  4. 4The result appears immediately — copy or download it.

Embed this tool

Put the working regex tester on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More developer tools