60
rated 0 times
[
65]
[
5]
/ answers: 1 / hits: 23078
/ 13 Years ago, tue, december 6, 2011, 12:00:00
var str = 7-Dec-1985
var str = 12-Jan-1703
var str = 18-Feb-1999
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.
I would have expected re = new RegExp(/(d+)D*z/);
To have worked but sadly it did not.
Any suggestions would be very appreciated
More From » regex