title: Replace everything between [ and ] in regex java
body: <p>I need to remove everything between <code>[ ]</code>.</p>
  
  <p>Example: </p>
  
  <p><strong>My Input :</strong> <code>ab[cd]e</code></p>
  
  <p><strong>Expected Output :</strong> <code>abe</code>. </p>
  
  <hr />
  
  <p>I tried using <code>\[</code> and <code>\]</code>, but it is reported as an illegal escape sequence.</p>
  
  <p>Can anyone please help me with this.</p>
  
  <p>P.S.: I am using Java 1.7.</p>