title: Java can't replace "{" with replaceAll method
body: <p>We're using replaceAll method of String and we can't replace { in any string.
  Our example:</p>
  
  <p>Tried :</p>
  
  <pre><code>"some { string".replaceAll("{", "other string");
  </code></pre>
  
  <p>And the error is the following:</p>
  
  <blockquote>
    <p>java.util.regex.PatternSyntaxException: Illegal repetition   occurs</p>
  </blockquote>
  
  <p>Open to any ideas! Maybe there is a workaround?!</p>