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.
Pattern & sample
live
Escapes are written for the JavaScript engine, e.g. \d{4},
(?<name>...), (?<=user=).
Only the JavaScript engine runs here; every other flavor is compared by static analysis.
Flavor compatibility
liveJavaScript live match
RegExpHow 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.