Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lennartkoopmann/42a05e268de11dcc594a to your computer and use it in GitHub Desktop.
Save lennartkoopmann/42a05e268de11dcc594a to your computer and use it in GitHub Desktop.
Input strings:
"early":
at=info status=302 method=GET path="/repo/debian/dists/trusty/1.2/binary-amd64/Packages.gz" host=packages.graylog2.org request_id=f9de9767-2aa1-4e64-8d82-36f8ace006e1 fwd="54.215.46.35" dyno=web.1 connect=0ms service=1ms bytes=287
"late":
at=info method=GET path="/repo/debian/dists/trusty/1.2/binary-amd64/Packages.gz" host=packages.graylog2.org request_id=f9de9767-2aa1-4e64-8d82-36f8ace006e1 fwd="54.215.46.35" dyno=web.1 connect=0ms service=1ms status=302 bytes=287
Regular expressions:
"greedy":
.*status=(\d{3}).*
"lazy":
.*?status=(\d{3}).*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment