title: Java Regex matching between curly braces
body: <p>I need to parse a log file and get the times and associated function call string
  This is stored in the log file as so: {"time" : "2012-09-24T03:08:50", "message" : "Call() started"}</p>
  
  <p>There will be multiple logged time function calls in between other string characters, so hence I am hoping to use regex to go through the file and grab all of these</p>
  
  <p>I would like to grab the entire logged information including the curly brackets</p>
  
  <p>I have tried the following</p>
  
  <pre><code>Pattern logEntry = Pattern.compile("{(.*?)}");
  Matcher matchPattern = logEntry.matcher(file);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Pattern.compile("{[^{}]*}");
  Matcher matchPattern = logEntry.matcher(file);
  </code></pre>
  
  <p>I keep getting illegal repetition errors, please help! Thanks.</p>