RegexBench

← Docs

Lab tools

Substitute, Format, Debugger, and Export.

Match / Substitute

Soft tabs switch between match highlighting and live replacement preview.

Replacement supports $1-style group references and $$.

Format

Best-effort spacing around alternation for readability. It does not rewrite regex semantics.

Debugger

Lists each match step with indices, groups, and lastIndex after the engine advances.

Export

Copy code snippets for the active flavor. Substitute mode includes replace/sub examples.