Regex Tester

Write a pattern, paste some text, and watch the matches highlight as you type — with every capture group (named or numbered) broken out per match, and a live replace preview. A cheat sheet covers where .NET's regex flavor differs from the JavaScript engine running this page.

/ /g

Result
Replace preview appears here.
.NET vs JavaScript — same pattern, different engine
Feature.NET (System.Text.RegularExpressions)JavaScript (this page)
Named groups(?<name>…) or (?'name'…)(?<name>…) only
Replacement refs${name}, $1$<name>, $1
Dot matches newlineRegexOptions.Singlelines flag
Atomic groups (?>…)SupportedNot supported
Backtracking runawayMatchTimeout can cap it; [GeneratedRegex] analyzers warnNo timeout — an evil pattern can freeze the tab (including this one)
Comments / free-spacingRegexOptions.IgnorePatternWhitespace + (?# )Not supported

Everything runs in your browser — patterns and text are never uploaded anywhere.