title: Remove numbers from string square bracket
body: <p>I have a huge string which contains a lot of numbers in square brackets. For instance:</p>
  
  <p>[1] this is an example
  ...
  [123] another example</p>
  
  <p>How can I remove the numbers and the brackets from my text string? </p>
  
  <p>My current code to extract the text from a file:</p>
  
  <pre><code>text = txtFile.read()
  text = str(text)
  text = text.replace("\\n", " ")
  text = " ".join(text.split())
  </code></pre>