title: How do I replace all "[", "]" and double quotes in Java
body: <p>I'm am having difficulty using the replaceAll method to replace square brackets and double quotes. Any ideas?</p>
  
  <p>Edit:</p>
  
  <p>So far I've tried:</p>
  
  <pre><code>replace("\[", "some_thing") // returns illegal escape character
  replace("[[", "some_thing") // returns Unclosed character class
  replace("^[", "some_thing") // returns Unclosed character class
  </code></pre>