Regular Expression Help for Date Validation - dd/mm/yyyy - PHP
I think you should escape the slashes /^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4}$/
You need to escape the slash since you are using it as regex delimiter
/^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4}$/
or use different regex delimiters
#^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$#
You can also use this one:
([0-2]\d|3[0-1])\/(0\d|1[0-2])\/(19|20)\d{2}
if you want to differentiate between dates and months, but also validate only 2 centuries.