title: Java regular expression to match {{characters inside double curly brace}}
body: <p>I am trying to match everything inside double curly brackets in a string. I am using the following expression:</p>
  
  <pre><code>\{\{.*\}\}
  </code></pre>
  
  <p>Some examples:<br/></p>
  
  <p><code>The {{dog}} is not a cat.</code> This correctly matches {{dog}}<br/></p>
  
  <p>However,<br/>
  <code>The {{dog}} is a {{cat}}</code> matches everything after the first match instead of returning two matches. I want it to match twice, once for {{dog}} and once for {{cat}}</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>Thanks.</p>