TM7 Tools
Developer ToolsRuns in your browser

Regex Tester

Test JavaScript regular expressions and review matches with indexes.

Enter a pattern, optional flags, and sample text. Matching uses the JavaScript RegExp engine in your browser.

Need a starting point?

Pattern

JavaScript RegExp syntax.

Sample text

Matches

Overview

Iterate on patterns with live feedback from the same RegExp engine your frontend uses. Add flags, edit sample text, and review match details before shipping code.

How to use

  1. Enter the pattern and optional flags (for example g, i, m).
  2. Paste sample text to test against.
  3. Review matches, capture groups, and indexes in the results panel.
  4. Refine the pattern and retest until behavior is correct.

Examples

  • Input validation

    Prototype an email or slug pattern and confirm false positives on edge-case strings.

  • Log parsing

    Match repeated tokens in a log excerpt before moving the pattern into a script.