Compare Regex Engines

Run the same input on two engines and see where their matches, captures or replacements differ.

Run two engines, see where they differ

Checking engine…

Not saved: closing this tab loses your work. Save keeps the regex, flags, engine, texts and tests in this browser only.
Workspace actions
Regular expression
Reference

Regex quick reference

^ · $
Start/end; m = lines.
[abc] · \d
Listed character / digit.
* · + · ?
Zero or more, one or more, optional.
(...)
Capture a numbered group.
(?<name>...)
Named capture.
(?=...)
Ahead; lookbehind varies.
i · m · s
Ignore case / line anchors / dot-newline.
Browse the full reference

Tab inserts a tab · press Esc, then Tab, to leave the editor

No regex yet.

Engine and options
the RegExp of this browser (version not pinned)
⋯

the RegExp of this browser (version not pinned)

Not available in JavaScript · This browser: x · ignore pattern whitespace; a · ASCII-only classes; U · lazy by default; J · duplicate names. u and v cannot be combined.

To run: enter a regex; enter a test text.

Test text

Tab inserts a tab · press Esc, then Tab, to leave the editor

No text yet.

Choose a second engine, regex and flags (B) to compare with the current setup (A).

No result yet

Results appear here after a run.

Verified Fixture FX-G04

What it does

Run the same text through two environments and see, text by text, where status, matches, captures or outputs differ.

How to use it

  1. Set up A as usual.
  2. Set up B: engine, regex and flags; B starts as an exact copy and is never converted between dialects.
  3. Compare, then read the differences for each text.

Verified example

As written

Text "ba"

JavaScript · This browser
a*

Result: "", "a", ""

Python re · Local WASM
a*

Result: "", "a", ""

PCRE2-8 · Local WASM
a*

Result: "", "a", ""

Go regexp · Local WASM
a*

Result: "", "a"

Recorded by running fixture FX-G04 on : rp.js@1 on Node v24.21.0 (V8), v24.21.0, CPython 3.14.2 (Pyodide 314.0.7), PCRE2 10.48, go1.27.1. JavaScript results come from the rp.js@1 core on Node’s V8; your browser runs the same core.

Engines

Limits