def parse_uri(uri):
groups = URI.match(uri).groups()<EOL>return (groups[<NUM_LIT:1>], groups[<NUM_LIT:3>], groups[<NUM_LIT:4>], groups[<NUM_LIT:6>], groups[<NUM_LIT:8>])<EOL>
Parses a URI using the regex given in Appendix B of RFC 3986.

        (scheme, authority, path, query, fragment) = parse_uri(uri)