 class="co">#&gt; 4       Juice  3.15</span></span>
<span><span class="co">#&gt; 5    Lemonade  2.00</span></span>
<span><span class="co">#&gt; 6  Hot Drinks    NA</span></span>
<span><span class="co">#&gt; 7         Tea  3.99</span></span>
<span><span class="co">#&gt; 8      Coffee  1.99</span></span></code></pre></div>
<p>The beverage type is embedded in the ‘drinks’ variable. If we can
match them with regular expressions, we can move the grouping values
into their own variable using <code><a href="..