How to replace two tags with php and regular expression into one : <p>I need help if you can help me. I need regular expression pattern to replace this: </p>

<pre><code>&lt;/table&gt; &lt;br /&gt; 
or this (without space in between)
&lt;/table&gt;&lt;br /&gt;

(it can be &lt;br /&gt; or &lt;br&gt;)
</code></pre>

<p>with only table close tag, to remove br tag at the end.</p>
