title: replace square brackets java
body: <p>I want to replace text in square brackets with "" in java:</p>
  
  <p>for example I have the sentence </p>
  
  <p><code>"Hello, [1] this is an example [2], can you help [3] me?"</code></p>
  
  <p>it should become:</p>
  
  <p>"Hello, this is an example, can you help me?"</p>