in reply to Regexp Quest

I have added a snippet with a regex for separating the host and domain parts of a hostname.