Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created April 6, 2019 22:33
Show Gist options
  • Save dipanjanS/5e8d9a8451d88f1e18e27f9d0f3f5620 to your computer and use it in GitHub Desktop.
Save dipanjanS/5e8d9a8451d88f1e18e27f9d0f3f5620 to your computer and use it in GitHub Desktop.
content_size_pattern = r'\s(\d+)$'
content_size = [re.search(content_size_pattern, item).group(1) for item in sample_logs]
print(content_size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment