s="mdzsyn-number">-4</span> <span class="mdzsyn-number">-2</span>) <span class="mdzsyn-comment"># -&gt; "ef"</span></code></pre><h2>Finding Substrings
</h2>
<p>Janet has multiple functions for finding and replacing strings. The
Janet string finding functions do not work on patterns or regular expressions;
they only work on string literals. For more flexible searching and replacing, see
the <a href="/peg.html">peg module</a>.
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsy