urlparse

{ urlparse } Simplified regexp-based URL parser Usage: auto u = urlparse("http://server/path?key=val#anchor"); writeln(u.host); writeln(u.toString);

struct urlparse {
string scheme;
string host;
string user;
string password;
string port;
string[] path;
string[string] query;
string[] fragment;
}