Head's Up: JavaScript is either turned off or not working properly in your browser. Some parts of this page may not work properly.
```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) } }
www.example.com