Browser-only

Regex Tester (Match/Groups/Replace Vista previa)

A regex tester you can use instantly—paste your pattern and text and confirm the result in one screen. Matches are highlighted, and capture groups plus replacement previews are shown together.

Everything runs locally in your browser. Nothing is sent to a server.

/ /

Evaluated with JavaScript (ECMAScript) regex. Behavior may differ from PCRE.

Flags
Details
g/i/m are the basics. Abrir details for extra flags.
Use $1, $2 for groups. $& is the full match.
Entrada text
Paste the text you want to test
Highlights
Matched ranges are highlighted

            
Matches: {count} / Time: {ms}ms / Anchored: {anchor} / Replace: {replace} / Mode: {mode}
Resultadoados

Opciones

How to use

Enter a pattern

Type your regex and pick the flags you need.

Paste input text

Highlights appear on the right as you type.

Review results

Check matches, groups, and replacements in the tabs.

Samples Aplicar pattern, flags, and replacement

Notas

This tool evaluates JavaScript regex.

  • Some PCRE-only features (like atomic groups) are not available.
  • Named groups and lookbehind can differ by environment.
  • Resultadoados are not guaranteed to match PCRE exactly.
Important

Verify results before production use because PCRE behavior can differ.

FAQ

What are the g/i/m flags?

Toggle them via the checkboxes. (g=global, i=ignore case, m=multiline)

Can I test replacements?

Enter a replacement string to see the Replace tab update. $1-style group references work too.

Is this different from PCRE?

S?. This tool uses JavaScript regex, so some patterns behave differently than PCRE.