What it does
Test a regex with Go’s regexp package (Go 1.27.1) compiled to WebAssembly.
How to use it
- Load the Go 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
As written
Text "ba"
a* Result: "", "a", ""
a* Result: "", "a", ""
a* Result: "", "a", ""
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
- Go regexp uses RE2 syntax: no backreferences and no lookaround, in exchange for linear-time matching.
- Go does not report an empty match directly after a previous match, as the example below shows.
Limits
- Positions are converted from UTF-8 bytes to the characters you see.