Created
July 14, 2014 16:11
-
-
Save docsteveharris/11772a3de1002c276377 to your computer and use it in GitHub Desktop.
24 hour clock time regex with option separator
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
time24_regex = re.compile( r"""\b ([01]?\d|2(?=[0-3])\d) [:|.]? ([0-5]?\d) \b""", re.VERBOSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parsing times
will only permit legal time combinatons working in the 24 hour clock