Allow for hostnames with hyphens in the perl regex