```cargo [dependencies] url = "2.5.0" ``` use url::Url; fn main() { let string = "https://www.example.com/"; match Url::parse(string) { Ok(url) => println!("{}", url.host_str().unwrap()), Err(e) => println!("{}", e) } }