title: Getting the last number in a string (JavaScript)
body: <p><code>var str = "7-Dec-1985"</code>
  <code>var str = "12-Jan-1703"</code>
  <code>var str = "18-Feb-1999"</code></p>
  
  <p>How would I got about pulling just the year out of the string? I have tried a number of different RegExp but none seem to be working.</p>
  
  <p>I would have expected <code>re = new RegExp(/(\d+)\D*\z/);</code> To have worked but sadly it did not. </p>
  
  <p>Any suggestions would be very appreciated </p>