change evaluation of hostnames

* Use a more readable regex
* allow server[1,2,3].domain.com form of hostnames