title: Remove <br>'s from the end of a string
body: <p>As the title says I have a string like this:</p>
  <pre><code>$string = &quot;Hello World&lt;br&gt;hello world&lt;br&gt;&lt;br&gt;&quot;;
  </code></pre>
  <p>I would like to get rid of the <code>&lt;br&gt;</code>s at the end of the string so it looks as follows:</p>
  <pre><code>$string = &quot;Hello World&lt;br&gt;hello world&quot;;
  </code></pre>
  <p>I tried this:</p>
  <pre><code>preg_replace('/^(&lt;br&gt;)*/', &quot;&quot;, $string);
  </code></pre>
  <p>but it didn't work.
  Maybe someone knows the right regex.</p>