title: Regex to replace first two characters and last characters
body: <p>I have a string and I need to remove the first two characters, in addition to the last character. I've managed to successfully remove the first two, but how do I remove the last character?</p>
  
  <pre><code>var code = 'AB123ABCD4';
  code.replace(/^[\s\S]{0,2}/g, "");
  </code></pre>
  
  <p>This removes the first two!</p>