Created
September 2, 2015 04:49
-
-
Save EvanTheB/32acfc27874fcffe2c75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
with open("raw.log") as f: | |
log = f.read() | |
fil = re.compile(":(.*)!.*:(.*)") | |
lines = [] | |
for l in log.split("\n"): | |
if "PRIVMSG #" not in l: | |
continue | |
m = fil.search(l) | |
if m is not None: | |
print m.group(1), m.group(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment