Skip to content

Instantly share code, notes, and snippets.

@sorashi
Created March 4, 2016 19:27
Show Gist options
  • Save sorashi/9b9b8d1b24253acce245 to your computer and use it in GitHub Desktop.
Save sorashi/9b9b8d1b24253acce245 to your computer and use it in GitHub Desktop.
RegEx for pulling out information from Twitch IRC messages recieved in a channel
^:(?<user>[a-zA-Z0-9_]{4,25})!\1@\1\.tmi\.twitch\.tv PRIVMSG #(?<channel>[a-zA-Z0-9_]{4,25}) :(?<message>.+)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment