ocs.org/string/check-set">Community Examples</a></div><hr><div class="binding"><span id="string/find" class="binding-sym">string/find</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#L313">source</a></span> <pre class="binding-text">(string/find patt str &amp;opt start-index)

Searches for the first instance of pattern patt in string str. Returns the index of the first character in patt if found, otherwi