# Split url into domain and endpoint ## Test cases 1. Input ``` https://stackoverflow.com/questions/27745/getting-parts-of-a-url-regex http://developers.google.com/drive/api/v3/manage-uploads https://nandhika.netlify.com/ https://regex101.com web.whatsapp.com/api web.whatsapp.com https://www.google.co.id/items?search=something&date=now ``` 2. Output ``` ('https://stackoverflow.com', '/questions/27745/getting-parts-of-a-url-regex') ('http://developers.google.com', '/drive/api/v3/manage-uploads') ('https://nandhika.netlify.com', '/') ('https://regex101.com', '') ('web.whatsapp.com', '/api') ('web.whatsapp.com', '') ('https://www.google.co.id', '/items?search=something&date=now') ```