Created
June 2, 2011 06:40
-
-
Save elado/1004030 to your computer and use it in GitHub Desktop.
Date Regexp Validator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^((29\/0?2(?=\/(\d{2}(0[48]|[13579][26]|[2468][048])| | |
([13579][26]|[2468][048])00))|([01]?\d|2[0-8])\/(0?\d|1[0-2])| | |
(29|30)\/(0?[13-9]|1[0-2])|31\/(0?[13578]|1[02]))\/\d{4})$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment