Created
October 16, 2015 04:01
-
-
Save Mierdin/09412f54741139e55595 to your computer and use it in GitHub Desktop.
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
>>> 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