title: java.util.regex.PatternSyntaxException: Unmatched closing ')' : during string.split operation
body: <p>I am trying to perform a split similar the following:</p>
  
  <pre><code>String str = "({Somestring 1 with a lot of braces and commas}),({Somestring 12with a lot of braces and commas})";
  println str.split("}),({");
  </code></pre>
  
  <p>But i see:</p>
  
  <blockquote>
    <p>java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 0
    }),({</p>
  </blockquote>
  
  <p>Clearly , my string is being treated as a regular expression. </p>
  
  <p>Is there a way i can escape this string? </p>