Regex Pattern for domain or hostnames or probably the best way to match a pattern : <p>Here's a sample domain name FQDN, How can I match the domain name after the short hostname? instead of making a pattern match for domain names? Advice is really much appreciated.</p>

<pre><code>host1.dept1.domain.com
host2.domain.com
host3.domain3.com
</code></pre>
