title: regex how do i remove the last "<br>" in a string
body: <p>How can i remove the last <code>&lt;br&gt;</code> from a string with replace() or replaceAll()</p>
  
  <p>the <code>&lt;br&gt;</code> comes after either a <code>&lt;br&gt;</code> or a word</p>
  
  <p>my idea is to add a string to the end of a string and then it'll be <code>&lt;br&gt;</code> +my added string</p>
  
  <p>how can i replace it then?</p>