title: Java: replace "[" "]" from text files strings
body: <p>I'm using</p>
  
  <pre><code>str.replaceAll("GeoData[", "");
  </code></pre>
  
  <p>to replace "[" symbol in some strings in my text file, but I get:</p>
  
  <pre><code>Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed character class near index 7
  GeoData[
         ^
      at java.util.regex.Pattern.error(Pattern.java:1713)
  </code></pre>
  
  <p>how can I solve this ?</p>