Removing the last digits in string
<p>I have a string that looks like this:</p>

<pre><code>[APPLE PIE] Sei Shoujo Sentai Lakers 3 Battle Team Lakers 3 (100% FULL-PIC)_20121104_032834
</code></pre>

<p>I want to remove the digits at the end of the string, basically the 16 digits at the end of the string. In the end it should look like this:</p>

<pre><code>[APPLE PIE] Sei Shoujo Sentai Lakers 3 Battle Team Lakers 3 (100% FULL-PIC)
</code></pre>

<p>This is my code that I have written so far</p>

<pre><code>var str="[APPLE PIE] Sei Shoujo Sentai Lakers 3 Battle Team Lakers 3 (100% FULL-PIC)_20121104_032834";
var n=str.substr(1,74);
document.write(n);
</code></pre>

<p>The problem is the string will be different so each will have different amount of characters. So how I remove the digits at the end of the string in javascript?</p>
