Text & code · runs locally

Test regular expressions

Write a pattern, drop in sample text, watch matches highlight live — with groups, flags and a replace preview.

Runs on your device No uploads, ever Free, no account
  1. 1
    Enter your pattern

    JavaScript flavour — the same engine as your browser, so what you test here is what runs there.

  2. 2
    Paste sample text

    Matches highlight as you type. Capture groups are listed with their content.

  3. 3
    Try a replacement

    Use $1, $2 for group references and see the result before you commit it anywhere.


Questions people actually ask

Which regex flavour is this?

JavaScript (ECMAScript). Python, PCRE or .NET differences — lookbehind edge cases, possessive quantifiers — won't all translate, so test in the target language too.

Catastrophic backtracking?

A browser tab can still be hung by a vicious pattern; that risk is part of regex itself, not this page. Real text behaves.


Feedback

Send a message

Messages, reviews and bug reports go to a private feedback log on this site. Nothing is published, and your files are never uploaded.

For a broken tool: the tool name, browser, and the steps that led to it are the most useful things. Do not paste passwords, keys or a sensitive file.

Files are never uploaded. Only this message is stored.

PDF

Tool preview

A short description of the tool.

Runs entirely in your browser. The file never leaves this device.

Open tool