(uri)
return (groups[1], groups[3], groups[4], groups[6], groups[8])
Parses a URI using the regex given in Appendix B of RFC 3986.

        (scheme, authority, path, query, fragment) = parse_uri(uri)
Parses a URI using the regex given in Appendix B of RFC 3986.
Parses a URI using the regex given in Appendix B of RFC 3986 .
def parse_uri(uri):
    """Parses a URI using the regex given in Appendix B of RFC 3986.

        (scheme, authority, path, query, fragment) = parse_uri(uri)
    """
    groups = URI.match(uri).groups()
    return (groups[1], groups[3], groups[4], groups[6], groups[8])
def parse_uri ( uri ) : groups = URI . match ( uri ) . groups ( ) return ( groups [ 1 ] , groups [ 3 ] , groups [ 4 ] , groups [ 6 ] , groups [ 8 ] )