r`. If `subst` is a function, it will be called with `patt` only if a match is found, and should return the actual replacement text to use. Will return the new string if `patt` is found, otherwise returns `str`.</pre><a href="https://janetdocs.org/core-api/string%2freplace">Community Examples</a></div><hr><div class="binding"><span id="string/replace-all" class="binding-sym">string/replace-all</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lan