Skip to content

Instantly share code, notes, and snippets.

@DylanLacey
Last active September 13, 2018 05:50
Show Gist options
  • Save DylanLacey/1646684ec42b915bbfd8a17b8d9f77a0 to your computer and use it in GitHub Desktop.
Save DylanLacey/1646684ec42b915bbfd8a17b8d9f77a0 to your computer and use it in GitHub Desktop.
#! python
import re
pattern = r"PROXY (\d+\.\d+\.\d+\.\d+):(\d+)"
f = open("pac.js", "r")
for line in f:
if re.search(pattern, line):
print("Match: %s" % line)
else:
print("No Match: %s" % line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment