Corrected regex for hosts with - in the name