[Tutor] Regular Expressions and RFC 822

alex gigh cogs2002@hotmail.com
Sun, 19 May 2002 21:04:40 +0000


Hi;

I am trying to write a mail server in Python and I found out that I can use 
regular expressions and then grouping:

"For example, an RFC-822 header line is divided into a header name and a 
value, separated by a ":". This can be handled by writing a regular 
expression which matches an entire header line, and has one group which 
matches the header name, and another group which matches the header's value. 
"

Can someone help me by showing me an example of how I could do this...

Many Thanks

Alex

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com