implemented regex to pull netloc from URL