Tool workspace

Regex Tester

Validate and debug JavaScript regex patterns quickly.

Runs locally in your browser.

Regex flavor: JavaScript (ECMAScript RegExp). Input is processed locally in your browser.

Matches

  • index: 0

    error: invalid email

    groups: error | invalid email

  • index: 40

    warn: cache miss

    groups: warn | cache miss

  • index: 57

    error: timeout

    groups: error | timeout

Replacement output

[error] invalid email
info: health check
[warn] cache miss
[error] timeout

How to use

  1. Enter regex pattern and flags.
  2. Paste test text to view matches and groups.
  3. Use replace preview to test replacement templates.

Limitations and caveats

  • Implements JavaScript regex flavor only.

Related tools