I have a regualar expression here that matches a certain dates but not perfect:
/[1-2][0-9][0-9][0-9][/-][0-1][0-9][/-][0-3][1-9]/g
Matches:
2003/10/05 2003-10-05 1999/05/02 1970-12-29
Basically according to system time Epoch (reference date) which is I believe started from 1 January 1970
upto the current date.
In this case, how do I capture only those numbers ranging from 1970-2017
and for months: 01-12
and days: 01-31
?
Anyone can help me and explain how to do it in regex?
Thanks!