Skip to content
Text & Code Runs in your browser — nothing uploadedFree · No signup

Regex Tester & Debugger (JavaScript / Dart)

Write a regular expression and see every match highlighted as you type, with capture groups, named groups and a replace preview. JavaScript regex syntax is also what Dart's RegExp uses for most patterns.

//gi

Test string

Matches 2

Contact dev@musmandev.com or hire@example.org Release 2026-11-01 shipped to https://www.musmandev.com/tools Brand colors: #22d3ee and #818cf8, server 192.168.1.20 Request id 3f1c2a9e-8b7d-4c6e-9a1f-2b3c4d5e6f70

Match details

#IndexMatchGroups
18dev@musmandev.com—
229hire@example.org—

Replace

Contact <dev@musmandev.com> or <hire@example.org>
Release 2026-11-01 shipped to https://www.musmandev.com/tools
Brand colors: #22d3ee and #818cf8, server 192.168.1.20
Request id 3f1c2a9e-8b7d-4c6e-9a1f-2b3c4d5e6f70

How to use the Regex Tester

  1. Enter a pattern and select flags.
  2. Paste test text — matches highlight instantly.
  3. Use the replace field to preview substitutions.

Features

  • Live highlighting of all matches
  • Capture and named group table
  • Flags: g, i, m, s, u, y
  • Replace preview with $1 / $<name> references
  • Library of common patterns (email, URL, phone, UUID…)

Frequently asked questions

Is JavaScript regex the same as Dart RegExp?

Dart's RegExp follows JavaScript (ECMAScript) semantics, so patterns tested here behave the same in Flutter. Flags map to constructor options: multiLine, caseSensitive, unicode and dotAll.

Why does my regex only match once?

Without the g (global) flag, matching stops after the first result. Enable g to find all matches.