~^((?<subdomain>.*)\.)(?<domain>[^.]+)\.(?<tld>[^.]+)$;
https://www.regexplanet.com/share/index.html?share=yyyyuwvkear