title: Regular expression to match content within curly braces without nested braces breaking it
body: <p>I'm currently matching content within a set of curly braces using <code>{([^}]*)}</code>, but it stops working once I add closing other curly braces inside of it.</p>
  
  <p>I basically want the double curly braces to act as any other text and be apart of the matching group it's nested in, <strong>not a separate match or sub-match (not recursive)</strong>.</p>
  
  <pre><code>{
      &lt;div&gt;
      works
      &lt;/div&gt;
  }
  
  {
      &lt;div&gt;
      {{fails}}
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>Here's a live example of what I currently have: <a href="http://regex101.com/r/pT5fA1/4" rel="nofollow">http://regex101.com/r/pT5fA1/4</a></p>
  
  <p>Any suggestions or advice would be appreciated.</p>