-
-
Save anonymous/23f277beea40792716f2366f592c6298 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
Ruby | |
/^:((?<nick>\S+)!(?<user>\S+)@)?(?<server>\S+)\s(?<cmd>\S+)\s((?<target>\S+)\s)?((:(?<payload>.+))|(?<params>.*))$/ | |
I'm trying to parse this string: | |
:opentux!~opentux@176.141.117.16 PRIVMSG #bottest :abc | |
But the payload value & params are always empty... | |
What's wrong with my regex ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment