Title |
Test
Find
IRC Message
|
Expression |
(?<raw_message>\:(?<source>((?<nick>[^!]+)![~]{0,1}(?<user>[^@]+)@)?(?<host>[^\s]+)) (?<command>[^\s]+)( )?(?<parameters>[^:]+){0,1}(:)?(?<text>[^\r^\n]+)?) |
Description |
Simple regular expression for creating an IRC client. This will parse the raw octet stream into message segments and groups that make it easy to build a client. |
Matches |
:irc.server.com 001 someguy :welcome to the IRC server |
Non-Matches |
*** : Connecting to server |
Author |
Rating:
Jerry
|
Source |
|
Your Rating |
|
Title: Pretty good
Name: cr
Date: 3/17/2007 6:44:05 PM
Comment:
This expression works very well. It does not take into account the possibility of message continuation, however.