perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to read an rfc spec         


Author: 2apart
Date: Jan 27, 2008 10:41

Here's a little section from rfc 2822. I know what the nemonics stand
for, but
I'm not sure how to read the spec, * [] () / what do they mean.
If you have a handle on this could you translate the CFWS spec. It
seems
to contain all the code except the quote "
Thanks.

FWS = ([*WSP CRLF] 1*WSP) / ; Folding white space
obs-FWS

ctext = NO-WS-CTL / ; Non white space controls

%%d33-39 / ; The rest of the US-ASCII
%%d42-91 / ; characters not including
"(",
%%d93-126 ; ")", or "\"

ccontent = ctext / quoted-pair / comment

comment = "(" *([FWS] ccontent) [FWS] ")"

CFWS = *([FWS] comment) (([FWS] comment) / FWS)
7 Comments
  Re: Last line issue         


Author:
Date: Jan 27, 2008 03:37

"John W. Krahn" schreef:
> tr/\t/ /s;

To also squash adjacent space characters:

tr/\t / /s;

--
Affijn, Ruud

"Gewoon is een tijger."
no comments