Regex Tester

Test JavaScript regular expressions and inspect matches, groups, and indices.

Regex Tester
Local input
Output
Processing…
About this tool

Made for the task at hand.

Run a JavaScript-compatible expression against multiline text and inspect every match as structured JSON. Invalid patterns and flags produce direct feedback.

How to use

  1. Put the pattern on the first line and test text below it.
  2. Enter flags such as g, i, m, s, or u in the flags field.
  3. Review match values, positions, and capture groups.
Your work stays yours.
Tool inputs are processed locally in your browser and are never sent to KitVerse servers. Clear the workspace when using a shared device.
Common questions
Which regex flavor is used?

The browser JavaScript RegExp engine is used, so syntax follows the JavaScript environment rather than PCRE.

Why is the pattern on its own line?

Separating pattern and text by line keeps multiline test content unambiguous without executing any code.