x="-1"></a></span>
<span id="cb14-8"><a href="#cb14-8" tabindex="-1"></a>matches <span class="ot">&lt;-</span> <span class="fu">gregexpr</span>(<span class="at">pattern =</span> <span class="st">&quot;[a-z]+&quot;</span>, <span class="at">text =</span> shopping_list) <span class="co"># words</span></span>
<span id="cb14-9"><a href="#cb14-9" tabindex="-1"></a><span class="fu">regmatches</span>(shopping_list, <span class="at">m =</span> matches)</span>
<span id="cb14-10"><a href="#cb14-10" tabindex="-1"></a><