docs.org/string/replace">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-lang/janet/blob/a0ddfcb/src/core/string.c#L414">source</a></span> <pre class="binding-text">(string/replace-all patt subst str)

Replace all instances of patt with subst in the string str. Overlapping matches will not be counted, only the first match in