title: Regex to remove words in curly braces
body: <p>I'm looking for a method to remove any substring within the braces from another substring.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>If I have the string <code>"The cat is {not} mine"</code>, I want a function that return <code>"The cat is mine";</code> </li>
  <li>If I have <code>"the glass was broken {by the dog}"</code>, I want a function that return <code>"The glass was broken "</code></li>
  </ul>
  
  <p>I have read that it would be possible using the regexp in the <code>replace</code> function but I don't know how to use it.</p>