Browser-only

Tester Regex (Match/Groups/Replace Preview)

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.

Flagi
Szczegóły
g/i/m are the basics. Open details for extra flags.
Use $1, $2 for groups. $& is the full match.
Tekst wejściowy
Paste the text you want to test
Wyróżnienia
Matched ranges are highlighted

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

Opcje

Jak używać

Wprowadź wzorzec

Type your regex and pick the flags you need.

Wklej tekst

Highlights appear on the right as you type.

Sprawdź wyniki

Check matches, groups, and replacements in the tabs.

Przykłady Apply pattern, flags, and replacement

Notatki

This tool evaluates JavaScript regex.

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

Verify results before production use because PCRE behavior can differ.

FAQ

Co oznaczają flagi g/i/m?

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

Czy mogę testować zamianę?

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

Czym to się różni od PCRE?

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