title: Get regex to match multiple instances of the same pattern
body: <p>So I have this regex - <a href="https://regex101.com/r/I0g6qW/3" rel="nofollow noreferrer">regex101</a>:</p>
  
  <pre><code>\[shortcode ([^ ]*)(?:[ ]?([^ ]*)="([^"]*)")*\]
  </code></pre>
  
  <p>Trying to match on this string</p>
  
  <pre><code>[shortcode contact param1="test 2" param2="test1"]
  </code></pre>
  
  <p>Right now, the regex matches this:</p>
  
  <pre><code>[contact, param2, test1]
  </code></pre>
  
  <p>I would like it to match this:</p>
  
  <pre><code>[contact, param1, test 2, param2, test1]
  </code></pre>
  
  <p>How can I get regex to match the first instance of the parameters pattern, rather than just the last?</p>