I'm using this code to validate a dateNow, I have a limited understanding of Regular Expressions but doesn't \d{2,4} mean that it matches either 2 or 4 numeric characters? Because it seems to be accepting 3 numeric characters too. :confused:Code:if ( testStr.match(/^\d{1,2}\/\d{1,2}\/\d{2,4}$/) == null )
{
sMessage += 'Date is not in format DD/MM/YYYY';
document.getElementById('startdate').focus();
}
