heres the code i'm working with
function datecheck($intext) {
$theresults = ereg("([0-9]{1,2})-([0-9]{1,2})-([0-9]{4})", $intext, $trashed);
if ($theresults) { $isamatch = ""; } else { $isamatch = "No - NOT A MATCH"; }
echo("\"$intext\" $isamatch<br>\n");
}
datecheck($expire);
thanks