Added RegExp and wildcard functionality to host matching.