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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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