title: How do I extract only alphabet from a alphanumeric string
body: <p>I have a string "5A" or "a6". I want to get only "A" or "a" on the result. I am using the following but it's not working.</p>
  
  <p>Javascript</p>
  
  <pre><code> var answer = '5A';
   answer = answer.replace(/^[0-9]+$/i);
   //console.log(answer) should be 'A';
  </code></pre>