RegexBench

← Docs

Engine flavors

JavaScript, Python, PCRE, and 20+ codegen targets.

Matching engine

Live matching always runs through the browser’s JavaScript RegExp engine.

The flavor selector drives the live code preview and clipboard export — not the runtime matcher.

Code preview

Changing Flavor updates the left-rail snippet instantly (match or substitute mode).

Supported targets include JavaScript/TypeScript, Python, PHP/PCRE, Perl, Ruby, Go, Java/Kotlin, C#/.NET, Rust, Swift, Dart, Scala, Elixir, R, PowerShell, PostgreSQL, MySQL, grep/ripgrep, and Boost.Regex.

JavaScript & TypeScript

Default flavors. Export emits a /pattern/flags literal plus match or replace usage.

Python & PCRE-like

Python export uses import re with raw strings (findall / sub).

PCRE/PHP and Perl emit slash-delimited forms familiar from those ecosystems.

Engine-specific syntax quirks are not simulated — treat snippets as codegen aids.