Module: Alt::URI::REGEXP::PATTERN
- Defined in:
- lib/rio/alturi/regex.rb,
lib/rio/alturi/regex.rb,
lib/rio/alturi/regex.rb
Constant Summary collapse
- ALPHA =
"A-Z" + "a-z"
- DIGIT =
"\\d"
- HEXDIG =
DIGIT + "A" + "B" + "C" + "D" + "E" + "F"
- UNRESERVED =
:stopdoc:
ALPHA + DIGIT + "." + "_" + "~" + "-"
- GEN_DELIMS =
gen-delims = “:” / “/” / “?” / “#” / “[” / “]” / “@”
":" + "/" + "?" + "#" + "[" + "]" + "@"
- SUB_DELIMS =
sub-delims = “!” / “$” / “&” / “‘” / “(” / “)”
/ "*" / "+" / "," / ";" / "="
"!" + "$" + "&" + "'" + "(" + ")" + "*" + "+" + "," + ";" + "="
- RESERVED =
reserved = gen-delims / sub-delims
GEN_DELIMS + SUB_DELIMS
- PCT_ENCODED =
pct-encoded = “%” HEXDIG HEXDIG
"%[#{HEXDIG}][#{HEXDIG}]"
- UCHAR =
userinfo = *( unreserved / pct-encoded / sub-delims / “:” )
":" + SUB_DELIMS + UNRESERVED
- USERCHAR =
user = *( unreserved / pct-encoded / sub-delims / “:” )
":" + SUB_DELIMS + UNRESERVED
- HCHAR =
host = *( unreserved / pct-encoded / sub-delims / “:” )
SUB_DELIMS + UNRESERVED
- PCHAR =
pchar = unreserved / pct-encoded / sub-delims / “:” / “@”
":" + "@" + SUB_DELIMS + UNRESERVED
- QCHAR =
query = *( pchar / “/” / “?” )
"/" + "?" + PCHAR
- QPCHAR =
QCHAR.sub('&','')
- FCHAR =
fragment = *( pchar / “/” / “?” )
"/" + "?" + PCHAR