Skip to content

Instantly share code, notes, and snippets.

@zeph1rus
Last active February 18, 2019 16:13
Show Gist options
  • Save zeph1rus/fdd70cd14cdbaa9f684a136fbbf084ce to your computer and use it in GitHub Desktop.
Save zeph1rus/fdd70cd14cdbaa9f684a136fbbf084ce to your computer and use it in GitHub Desktop.
Python Regex for Parsing netstat output
\A\s+(TCP|UDP)\s+([0-9A-Za-z-_.]+):([0-9]+)\s+([0-9A-Za-z-_.]+):([0-9A-Za-z]+)\s+([A-Za-z_-]+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment