an> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/e9c6678/src/core/peg.c#L1972">source</a></span> <pre class="binding-text">(peg/replace-all peg subst text &amp;opt start &amp; args)

Replace all matches of `peg` in `text` with `subst`, returning a new buffer. The peg does not need to make captures to do replacement. If `subst` is a function, it will be called with the matching text followed by any captures.</pre><a href="https://janetdocs.org/core-api/peg%2freplace-all">Commu