Skip to content

Instantly share code, notes, and snippets.

@docsteveharris
Created July 14, 2014 16:11
Show Gist options
  • Select an option

  • Save docsteveharris/11772a3de1002c276377 to your computer and use it in GitHub Desktop.

Select an option

Save docsteveharris/11772a3de1002c276377 to your computer and use it in GitHub Desktop.
24 hour clock time regex with option separator
time24_regex = re.compile( r"""\b ([01]?\d|2(?=[0-3])\d) [:|.]? ([0-5]?\d) \b""", re.VERBOSE)
@docsteveharris

Copy link
Copy Markdown
Author

parsing times
will only permit legal time combinatons working in the 24 hour clock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment