[Israel.pm] RegEX Failure
Georges EL OJAIMI
g-ojaimi at cyberia.net.lb
Fri Sep 22 17:27:12 EEST 2006
Hello,
I have a Regular expression that check for valid date/time insertion in a database. Sometimes this code verify abnormal time entry and other time fails.
Can you please check what is wrong in it:
(1[0-2]|0?[1-9])[\\-\\/](0?[1-9]|[1][0-9]|3[01])[\\-\\/]((19|20)\\d{2}) (0?[0-9]|[1][0-9]|[2][0-3]):(0?[0-9]|[1-5][0-9]):(0?[0-9]|[1-5][0-9])
Best regards,
Georges
More information about the Perl
mailing list