Skip to content

Instantly share code, notes, and snippets.

@EinPinsel
Last active April 26, 2018 16:13
Show Gist options
  • Save EinPinsel/97530939833069f198d597b94b5b51e5 to your computer and use it in GitHub Desktop.
Save EinPinsel/97530939833069f198d597b94b5b51e5 to your computer and use it in GitHub Desktop.
# Remove duplicate lines
^(.*)(\r?\n\1)+$ -> Replace with $1
# Get the third octett of an IP-Adress:
\b\d{1,3}\.\d{1,3}\.\K\d{1,3}(?=\.\d{1,3}\b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment