split a given url into domain and subdomain using regex