Hi,
I’m new to regular expressions and I’m trying to validate a date so that only dates from 2017 onwards are allowed to be selected. I found a regex online that works with my code, but I’m unsure as to what I change to get it so that it only accepts 2017. Also, it only works in Chrome. The validation doesn’t work in FireFox. Any way to fix that?
Any help is much appreciated, thank you. Apologies if this is in the wrong forum.
/^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/g;