e first match 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. If no matches are found, returns the input string in a new buffer.</pre><a href="https://janetdocs.org/core-api/peg%2freplace">Community Examples</a></div><hr><div class="binding"><span id="peg/replace-all" class="binding-sym">peg/replace-all</span> <span class="binding-type">cfunction</sp