Tools Guides
developer Free No signup

Regex Tester & Debugger

Test regular expressions with real-time match highlighting, capture groups, and replace mode.

Loading tool…

About this tool

Interactive regex testing tool. Enter a pattern and test string to see all matches highlighted in real time. View capture groups, named groups, and match positions. Switch to Replace mode to preview substitutions. Supports all JavaScript regex flags (g, i, m, s, u).

How to use

  1. 1 Enter your regular expression in the Pattern field.
  2. 2 Optionally add flags (g for all matches, i for case-insensitive, m for multiline).
  3. 3 Paste your test string — matches are highlighted in real time.
  4. 4 Switch to Replace tab to preview substitutions with $1, $2, or named groups.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}