Team:
I have a date which comes in the format of mm/dd/yy.
Example: 08/01/00
Now, I have my regular expression to check for this in this
format.
Example:
$result = $start_date =~ /(\d\d)\/(\d\d)\/(\d\d)/;
So, when I enter a date in the format of 08/01/00,
the result is success, or a non-zero return coded.
Now, if I enter a date in the format of 88888/01/00, the $result is STILL success, or a non-zero value.
Is there something which will ensure each field is only two(2) digits in length? Otherwise I want to print an exception message any have them retry again.
Thanks much!