Created
November 17, 2014 07:17
-
-
Save lukrizal/4a95f3fcd70d2ff74e9c to your computer and use it in GitHub Desktop.
Some useful regex
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
dateRegEx = /[0-9]{4}-(1[0-2]|0?[0-9])-(3[0-1]|2[0-9]|0?[0-9])$/; | |
timeRegEx = { | |
'12Hour': /[0-1]?[0-9]:[0-5][0-9]\W?[a|p]m/ | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment