RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Jerry
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials