RegEx Tester

Flags

About this tool

Write a regular expression, paste test text, and see matches highlighted live with their positions and capture groups (very large inputs are capped for rendering). All matching runs locally in your browser.

How to use
  1. Enter a regular expression and pick flags (g, i, m, s).
  2. Paste the text to test.
  3. View the highlighted matches, positions and capture groups, then copy the match list.
Is my text uploaded anywhere?

No. Matching and highlighting happen entirely in your browser.

How do I see capture groups?

Each match lists its capture groups (numbered $1, $2, …) beneath the matched text.