title: How to split by HTML tags using a regex
body: <p>I have a string like this:</p>
  
  <pre><code>"Energia Elétrica kWh&lt;span class=\"_ _3\"&gt; &lt;/span&gt;  10.942 &lt;span class=\"_ _4\"&gt; &lt;/span&gt; 0,74999294 &lt;span class=\"_ _5\"&gt; &lt;/span&gt;     8.206,39"
  </code></pre>
  
  <p>and I want to split it by its HTML tags, which are always <code>&lt;span&gt;</code>. I tried something like:</p>
  
  <pre><code>my_string.split(/&lt;span(.*)span&gt;/) 
  </code></pre>
  
  <p>but it didn't work, it only matched  the first element correctly.</p>
  
  <p>Does anyone know what is wrong with my regex? In this example, I expected the returned value to be:</p>
  
  <pre><code>["Energia Elétrica kWh", "10.942", "0,74999294" ,"8.206,39"]
  </code></pre>
  
  <p>I would like something like <code>strip_tags</code>, but instead of returning the string sanitized, get the array split by the tags removed.</p>