Module: URI::RFC2396_REGEXP::PATTERN
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | lib/uri/rfc2396_parser.rb |
Overview
Patterns used to parse URI’s
Constant Summary
-
ALNUM =
alphanum = alpha | digit
"#{ALPHA}\\d"
-
ALPHA =
alpha = lowalpha | upalpha
"a-zA-Z"
-
DOMLABEL =
domainlabel = alphanum | alphanum *( alphanum | “-” ) alphanum
"(?:[#{ALNUM}](?:[-#{ALNUM}]*[#{ALNUM}])?)"
-
ESCAPED =
escaped = “%” hex hex
"%[#{HEX}]{2}"
-
HEX =
hex = digit | “A” | “B” | “C” | “D” | “E” | “F” |
"a" | "b" | "c" | "d" | "e" | "f"
"a-fA-F\\d"
-
HOSTNAME =
hostname = *( domainlabel “.” ) toplabel [ “.” ]
"(?:#{DOMLABEL}\\.)*#{TOPLABEL}\\.?"
-
RESERVED =
reserved = “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” |
"$" | ","
reserved = “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” |
"$" | "," | "[" | "]" (RFC 2732)
";/?:@&=+$,\\[\\]"
-
TOPLABEL =
toplabel = alpha | alpha *( alphanum | “-” ) alphanum
"(?:[#{ALPHA}](?:[-#{ALNUM}]*[#{ALNUM}])?)"
-
UNRESERVED =
mark = “-” | “_” | “.” | “!” | “~” | “*” | “‘” |
"(" | ")"
unreserved = alphanum | mark
"\\-_.!~*'()#{ALNUM}"