Last active
December 28, 2017 23:16
-
-
Save joshavg/fb11adefe495059b7a5d to your computer and use it in GitHub Desktop.
Ruby Regex for IRC server responses
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
/^:?((?<nick>\S+)!(?<user>\S+)@)?(?<server>\S+)\s(?<cmd>\S+)\s((?<target>\S+)\s)?((?<target2>\S+)\s)?((:(?<payload>.+))|(?<params>.*))$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://rubular.com/r/aPOFGQuZBN