What it does
Test a regex with PCRE2 10.48 compiled to WebAssembly, in UTF mode without JIT.
How to use it
- Load the PCRE2 engine (its size is shown before the download).
- Type or paste the regex.
- Paste the text to test; add more texts with Add text.
- Results appear as you type; press Ctrl/Cmd+Enter to run with the longer deadline.
Verified example
Example
Text "ID=42 code=9"
(?<=ID=)\d+ Result: "42"
(?<=ID=)\d+ Result: "42"
(?<=ID=)\d+ Result: "42"
Counterexample
Text "code=9"
(?<=ID=)\d+ Result: no match
(?<=ID=)\d+ Result: no match
(?<=ID=)\d+ Result: no match
Recorded by running fixture FX-S06 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
- This is the PCRE2 library itself. PHP preg_* functions add their own options and are not what runs here.
Limits
- \C is disabled; empty matches advance as pcre2test does.