Created
June 13, 2015 02:22
-
-
Save irisfofs/4a6ad7d077634f31ebe5 to your computer and use it in GitHub Desktop.
Junk parser
This file contains hidden or 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
MODE = /([+%@&~!]?)/ | |
NICK = /([\w\-\\\[\]\{\}\^\`\|]+)/ | |
DATE_REGEXP = /(\d\d\d\d \d\d \d\d\[\d\d:\d\d\])/ | |
# Crappy but worked for examples, could definitely be improved | |
USER_AT_HOST = /\(\w+@[^)]+\)/ | |
JUNK = /#{DATE_REGEXP} \* #{MODE}#{NICK} (sets mode:|is now known as|(#{USER_AT_HOST} (has joined|Quit))).*$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment