title: How remove the text between curly bracket
body: <p>I have strings extracted from a csv file. I want to know how to remove the text between the curly brackets from the string using Python, ex:</p>
  
  <pre><code>string = 'some text hear { bracket } some text here'
  </code></pre>
  
  <p>I want to get:</p>
  
  <pre><code>some text hear some text here
  </code></pre>
  
  <p>I hope anyone can help me to solve this problem, thank you.</p>
  
  <p>EDIT:
  answer
  import re
  string = 'some text hear { bracket } some text here'
  string = re.sub(r"\s*{.<em>}\s</em>", " ", string)
  print(string)</p>