Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Created October 16, 2015 04:01
Show Gist options
  • Save Mierdin/09412f54741139e55595 to your computer and use it in GitHub Desktop.
Save Mierdin/09412f54741139e55595 to your computer and use it in GitHub Desktop.
>>> import re
>>> results = re.search('\*([A-Za-z]{3} [0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}):', 'Oct 15 21:29:09 60: testRouter0: *Oct 16 03:04:37.099:')
>>> results.group(1)
'Oct 16 03:04:37.099'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment