title: Java regex to match curly braces - "invalid escape sequence"
body: <p>I want to parse nested JSON strings by splitting them up recursively by { }. The regex I came up with is "{([^}]*.?)}", which I've <a href="http://java-regex-tester.appspot.com/" rel="noreferrer">tested</a> appropriately grabs the string I want. However, when I try to include it in my Java I get the following error: "Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \ )"</p>
  
  <p>This is my code, and where the error occurs:</p>
  
  <pre><code>String[] strArr = jsonText.split("\{([^}]*.?)\}");
  </code></pre>
  
  <p>What am I doing wrong?</p>