title: Regex with attributes
body: <p>I would like to parse this kind of code :</p>
  
  <pre><code>{articles mode="extrait" nb="3"}
  </code></pre>
  
  <p>I am using this regex :</p>
  
  <pre><code>@\{(articles)(?:(?:\s|\&amp;nbsp;)*(?:(\w+)="(\w+)"))*\}@
  </code></pre>
  
  <p>But it doesn't work, when I do a preg_match_all, here is the result of a print_r with the $matches parameter:</p>
  
  <pre><code>Array (
      [0] =&gt; {articles mode="extraits" nb="3"}
      [1] =&gt; articles
      [2] =&gt; nb
      [3] =&gt; 3
  )
  </code></pre>
  
  <p>I thought that the last * should do the trick of getting all the attributes instead of just the last one. </p>
  
  <p>Do you see what is missing or incorrect ?</p>
  
  <p>Thank you in advance</p>