vincent kraeutler added the comment:
Quite like urlparse, uriparse does not fail on input which does not
represent valid URI's. At least not early or reliably enough.
Specifically, I noticed that urisplit does not fail on input strings
with a missing scheme, such as "foo.com/bar&qu
vincent kraeutler added the comment:
Some more notes.
a) RFC3986 explicitly states that the presented regex (which you use)
""" is the regular expression for breaking-down a *well-formed* URI
reference into its components. """ (Emphasis added). I am not su
vincent kraeutler added the comment:
In the meantime, I have found a very nice parser combinator library for
Python (pyparse) and have implemented a validating parser for RFC 3986
URI's by more or less simply converting the complete ABNF grammar found
in the RFC. Obviously, this will never