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
# original work by Michael F. Lamb. License: GPLv3. | |
# added optional tilde before !user by kupp | |
RFC2812Matcher = /// | |
^ # We'll match the whole line. Start. | |
# Optional prefix and the space that separates it | |
# from the next thing. Prefix can be a servername, | |
# or nick[[!user]@host] | |
(?::( # This whole set is optional but if it's | |
# here it begins with : and ends with space |