code: def parse_uri(uri):
      
      groups = URI.match(uri).groups()
      return (groups[1], groups[3], groups[4], groups[6], groups[8])
docs: Parses a URI using the regex given in Appendix B of RFC 3986.
  
          (scheme, authority, path, query, fragment) = parse_uri(uri)