title: get values between nested curly braces with regex php
body: <p>I have template codes with nested curly braces like this:</p>
  
  <pre><code>{code{attributes}}
  </code></pre>
  
  <p>I want both values: '<code>code</code>' and '<code>attributes</code>', how do I do that?</p>