title: How to find many instances of a specific pattern in RegEx?
body: <p>Currently (in PHP) I have the following regex pattern:</p>
  
  <pre><code>\[(.*) (.*)=(.*)\]
  </code></pre>
  
  <p>This matches [doSomething limitation=true]</p>
  
  <p>The end result being that my code will interpret that string and replace it with whatever value is coded to return for it.</p>
  
  <p>However, some of my code needs multiple variables sent through to the function, for example:</p>
  
  <p>[doSomething limitation=true otherlimitation=false sendfile=1 title="hello there"]</p>
  
  <p>How can I make the (.<em>)=(.</em>) in the regex repeatable so that it matches every variable sent through including the first (most important) name of function?</p>