Module: Net::IMAP::ResponseParser::Patterns::RFC5234

Included in:
Net::IMAP::ResponseParser::Patterns
Defined in:
lib/net/imap/response_parser.rb

Overview

From RFC5234, “Augmented BNF for Syntax Specifications: ABNF”

ALPHA = %x41-5A / %x61-7A ; A-Z / a-z CHAR = %x01-7F CRLF = CR LF

; Internet standard newline

CTL = %x00-1F / %x7F

; controls

DIGIT = %x30-39

; 0-9

DQUOTE = %x22

; " (Double Quote)

HEXDIG = DIGIT / “A” / “B” / “C” / “D” / “E” / “F” OCTET = %x00-FF SP = %x20

Constant Summary collapse

ALPHA =
/[A-Za-z]/n
CHAR =
/[\x01-\x7f]/n
CRLF =
/\r\n/n
CTL =
/[\x00-\x1F\x7F]/n
DIGIT =
/\d/n
DQUOTE =
/"/n
HEXDIG =
/\h/
OCTET =

not using /./m for embedding purposes

/[\x00-\xFF]/n
SP =
/ /n