My Regular expression is not working properly in neos project. Regular expression for DD/MM/YYYY (only 19XX-20XX)
var date_regex = /^(0[1-9]|1\d|2\d|3[01])\/(0[1-9]|1[0-2])\/\/(19|20)\d{2}$/ ;
return date_regex.test(testDate);
I resolved the issue with this
var date_regex = /^(0[1-9]|1\d|2\d|3[01])\/(0[1-9]|1[0-2])\/(19[0-9][0-9]|20[0-9][0-9])$/;
why neos remove the '{2}', Is it any problem with my new Regular expression
Your help would be appreciated