title: Extracting top-level and second-level domain from a URL using regex
body: <p>How can I extract only top-level and second-level domain from a URL using regex? I want to skip all lower level domains. Any ideas?</p>