i am trying to valdiate the date field "YYYYMMDD" using PHP regex. I tried something like this
/([0-9]{4})([0-9]{2})([0-9]{2})/
but in this one, it's going to accept any two digits like 01-99 for MM or DD, but i am looking to have something for 01-12 for MM and 01-31 for DD. Any advise on doing this?
thanks