What it does
When a regex finds nothing, the usual causes are anchors that demand the whole text, missing flags, or another engine’s syntax.
How to use it
- Load the failing case and read the empty result.
- Check anchors, flags and the engine.
- Load the corrected pattern and compare.
Verified example
As written
Text "cat dog"
^cat$ Result: no match
Corrected
Text "cat dog"
\bcat\b Result: "cat"
Recorded by running fixture FX-G01 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
- A pattern the engine rejects is shown as an error with its position, never as "no matches".
Limits
- Remove anchors only when you really want to find the word inside a longer text.