use a regexp to parse the hostmask