support for either string matching or regex matching of server names

We use the format of www1-<project>.<domain>.. which could be problematic with the current implementation. however this code allows for a much more fine grained control with Regular expression support