pub fn get_domain_name(input: &str) -> Option<Match<'_>>
Use regex to get the domain name and subdomains from the given URL input : link to get the domain and subdomains