Module: URI::REGEXP

Included in:
URI, Escape, Generic, MailTo
Defined in:
lib/uri/common.rb

Defined Under Namespace

Modules: PATTERN

Constant Summary

ABS_URI =

for URI::split

Regexp.new('^' + PATTERN::X_ABS_URI + '$', #'
Regexp::EXTENDED, 'N').freeze
REL_URI =

'

Regexp.new('^' + PATTERN::X_REL_URI + '$', #'
Regexp::EXTENDED, 'N').freeze
URI_REF =

for URI::extract

Regexp.new(PATTERN::URI_REF, false, 'N').freeze
ABS_URI_REF =
Regexp.new(PATTERN::X_ABS_URI, Regexp::EXTENDED, 'N').freeze
REL_URI_REF =
Regexp.new(PATTERN::X_REL_URI, Regexp::EXTENDED, 'N').freeze
ESCAPED =

for URI::escape/unescape

Regexp.new(PATTERN::ESCAPED, false, 'N').freeze
UNSAFE =
Regexp.new("[^#{PATTERN::UNRESERVED}#{PATTERN::RESERVED}]",
false, 'N').freeze
SCHEME =

for Generic#initialize

Regexp.new("^#{PATTERN::SCHEME}$", false, 'N').freeze
USERINFO =

"

Regexp.new("^#{PATTERN::USERINFO}$", false, 'N').freeze
HOST =
Regexp.new("^#{PATTERN::HOST}$", false, 'N').freeze
PORT =

" "

Regexp.new("^#{PATTERN::PORT}$", false, 'N').freeze
OPAQUE =

"

Regexp.new("^#{PATTERN::OPAQUE_PART}$", false, 'N').freeze
REGISTRY =
Regexp.new("^#{PATTERN::REG_NAME}$", false, 'N').freeze
ABS_PATH =
Regexp.new("^#{PATTERN::ABS_PATH}$", false, 'N').freeze
REL_PATH =

" " "

Regexp.new("^#{PATTERN::REL_PATH}$", false, 'N').freeze
QUERY =

"

Regexp.new("^#{PATTERN::QUERY}$", false, 'N').freeze
FRAGMENT =

"

Regexp.new("^#{PATTERN::FRAGMENT}$", false, 'N').freeze