Regex to match Domain.CCTLD
问题 Does anyone know a regular expression to match Domain.CCTLD? I don't want subdomains, only the "atomic domain". For example, docs.google.com doesn't get matched, but google.com does. However, this gets complicated with stuff like .co.uk , CCTLDs. Does anyone know a solution? Thanks in advance. EDIT: I've realized I also have to deal with multiple subdomains, like john.doe.google.co.uk . Need a solution now more than ever :P. 回答1: Based on your comment above, I'm going to reinterpret the