Availability::- use_module(library(uri)).
(can be autoloaded)
[det]uri_components(+URI,
-Components)
[det]uri_components(-URI,
+Components)Break a URI into its 5 basic components according to the
RFC-3986 regular expression:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
12 3 4 5 6 7 8 9
Components | is a term uri_components(Scheme, Authority, Path, Search, Fragment) .
If a URI is parsed, i.e., using mode (+,-), components
that are not found are left uninstantiated (variable). See uri_data/3
for accessing this structure. |
Availability::- use_module(library(uri)).
(can be autoloaded)
[det]uri_components(+URI,
-Components)
[det]uri_components(-URI,
+Components)Break a URI into its 5 basic components according to the
RFC-3986 regular expression:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
12 3 4 5 6 7 8 9
Components | is a term uri_components(Scheme, Authority, Path, Search, Fragment) .
If a URI is parsed, i.e., using mode (+,-), components
that are not found are left uninstantiated (variable). See uri_data/3
for accessing this structure. |