Hey all,
I'm not really too familiar with regex format but need some assistance trying to make sure that the user is putting in a valid 4 digit year, and obviously greater than 2000 but less than 2009. The code I have currently is:
if ( !ereg("[2-]+(.[0-])+[0-]+(.[0-9-])?$", $year_due )) {
<do stuff here>
}
I am using PHP 4.0.1pl2.
Thanks all!
--->Rob