/^(20)(?(1)(0[7-9]|[^0]\d)|(21)\d\d)$/
I am trying to get this conditional expression to match dates between 2007 and 2199.
If i try 2007, or anything of the form 20 , it works, when i try any year of the form 21 , it does not work
Could you help me with this? it would be greatly appreciated.
Thanks for your attention
Oh and the "/d" seems to be showing up in the post only as "d" but the backslash is in my code.