ommunity Examples</a></div><hr><div class="binding"><span id="string/replace" class="binding-sym">string/replace</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#L390">source</a></span> <pre class="binding-text">(string/replace patt subst str)

Replace the first occurrence of patt with subst in the string str. Will return the new string if patt is found, otherwise returns str.</pre><a href="https://janet