title: How to match multiple occurrences of a substring
body: <p>If I have an HTML string such as:</p>
  
  <pre><code>&lt;div&gt;&lt;p&gt;£20&lt;span class="abc" /&gt;&lt;span class="def"&gt;56&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And I want the text:</p>
  
  <pre><code>20&lt;span class="abc" /&gt;&lt;span class="def"&gt;56
  </code></pre>
  
  <p>How do I define a regular expression to match the <strong>target sections multiple times</strong>. So far I have:</p>
  
  <pre><code>str.match(/\d*&lt;[^&gt;]*&gt;\d*/)
  </code></pre>
  
  <p>But this will only return the first number section <code>20&lt;span class="abc" /&gt;</code></p>
  
  <p>I need this to be flexible to match multiple tag / numeric sections while trimming anything leading or trailing the first / last digit in the string.</p>