I don't really understand regex no matter how much reading I do, its just very difficult to understand at a glance. I will also be needing to check $dated to see if its blank. So it could either be MM/DD/YYYY or nothing. I'm sure I'm getting close, but no matter what that is always doing the "else statement"if ($dated =~ m/^[0-3][0-9]\/[0-1][0-9]\/[1-2][0-9][0-9][0-9]$/) { } else { #User entered an invaild date. $passfail = 0; $errmsg = 'Unable to use date format. Please use "MM/DD/YYYY" or MM-DD +-YYYY for the Date Delivered Field'; $errtitle = 'Validation Error'; $seconds = 7; }
In reply to Quick Regex Question by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |