Skip to content

Instantly share code, notes, and snippets.

@joshavg
Last active December 28, 2017 23:16
Show Gist options
  • Save joshavg/fb11adefe495059b7a5d to your computer and use it in GitHub Desktop.
Save joshavg/fb11adefe495059b7a5d to your computer and use it in GitHub Desktop.
Ruby Regex for IRC server responses
/^:?((?<nick>\S+)!(?<user>\S+)@)?(?<server>\S+)\s(?<cmd>\S+)\s((?<target>\S+)\s)?((?<target2>\S+)\s)?((:(?<payload>.+))|(?<params>.*))$/
@joshavg
Copy link
Author

joshavg commented Feb 4, 2015

@joshavg
Copy link
Author

joshavg commented Feb 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment