remove everything after the last occurrence of numerical value
<p>I need to remove everything after the last occurrence of a numerical value some examples below:  </p>

<p><code>1234D</code> Should be <code>1234</code><br>
<code>ABCD1234A_BC</code> Should be <code>ABCD1234</code></p>
