Free, browser-based utilities for everyday developer workflows

Regex Tester / Extractor

Test JavaScript regex patterns, inspect matches and capture groups, extract values, preview replacements, split text, explain syntax, and check ReDoS risk. Runs locally - no upload.

  • Paste a pattern (raw or /pattern/flags) and sample text.
  • Inspect matches, named groups, line/column, and capture indices.
  • Extract values as CSV/JSON/Markdown, preview replacements, split text, and check for risky patterns.

Pattern & sample

Runs with JavaScript RegExp in your current browser.
Flags:
Quick presets:
Snippets (click to insert at cursor):
StatusIdle
Matches0
Groups0
Sample size0 chars
Run time-
Risk-

              

Matches & capture groups

    How to use the Regex Tester & Extractor

    Build, test, debug, and explain JavaScript regular expressions against your sample text. The Regex Tester highlights matches, lists capture and named groups, lets you preview replacements safely, splits on a pattern, flags ReDoS risk in your expression, and exports matches as CSV or JSON. Useful for writing log parsers, extracting fields, validating inputs, and learning regex — and it runs entirely in your browser.

    What it does

    When to use it

    How to use it

    1. Paste your sample text into the input.
    2. Enter the regex pattern — either raw, or /pattern/flags from another language.
    3. Toggle flags (g, i, m, s, etc.) and click Run — matches are highlighted in the text.
    4. Inspect the Groups / Matches tab to see every match, capture group, and position.
    5. Switch to Extract for a clean list, Replace for a preview diff, or Split to break the text on the pattern.
    6. Open the Performance / Safety tab to see ReDoS warnings before deploying the regex.
    7. Export matches as CSV or JSON for downstream work.

    Capture & named groups

    Use plain groups (...), named groups (?<id>...), and non-capturing groups (?:...). The Groups / Matches tab shows every group's value, start/end, and whether it matched. With the d flag, group start/end indices are returned by the engine.

    Tips & pitfalls

    ReDoS & performance safety

    Some regex shapes — nested quantifiers like (a+)+, repeated groups like ([a-z]+)*, ambiguous alternation, leading .* with backtracking — can cause exponential matching time. The Performance / Safety tab flags these heuristically. The engine also caps matches and execution time so a risky pattern cannot freeze the browser.

    FAQ

    Runs locally in your browser. No uploads. Sample text, pattern, and outputs are never sent to a server.