Created
April 6, 2019 22:26
-
-
Save dipanjanS/1cb4ed97eaefe6fafc2c3466c8c7076e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
method_uri_protocol_pattern = r'\"(\S+)\s(\S+)\s*(\S*)\"' | |
method_uri_protocol = [re.search(method_uri_protocol_pattern, item).groups() | |
if re.search(method_uri_protocol_pattern, item) | |
else 'no match' | |
for item in sample_logs] | |
method_uri_protocol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment