by a call to <code>onNonMatch</code>. If
<code>onNonMatch</code> is omitted, the non-matching part is used.</p>
<p>Then all the converted parts are combined into the resulting string.</p>
<pre class="language-dart"><code>'Eats shoots leaves'.splitMapJoin((new RegExp(r'shoots')),
    onMatch:    (m) =&gt; '${m.group(0)}',
    onNonMatch: (n) =&gt; '*'); // *shoots*
</code></pre>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre cla