Text & Regex

Regex Flavor Comparator

Paste a regular expression once and see which constructs are portable and which behave differently across JavaScript, Python, PHP/PCRE, Java, .NET, Ruby, Go and Rust. Runs entirely in your browser.

Runs in your browser v1.0.0

Pattern & sample

live

Escapes are written for the JavaScript engine, e.g. \d{4}, (?<name>...), (?<=user=).

Flags (JavaScript preview)

Only the JavaScript engine runs here; every other flavor is compared by static analysis.

Flavor compatibility

live

JavaScript live match

RegExp

How it works

Your pattern is scanned in the browser for constructs whose syntax or meaning differs between engines, then matched against your sample text with the browser’s own RegExp engine. Support levels are a quick guide, not a guarantee — engine versions matter, and flags are always passed in each language’s own syntax. Nothing is uploaded.