Should it really be ```or not host.match```? I'm thinking ```or host.match``` makes more sense (but I might be missing something).

Also, in the regexp, the ```.``` might need to be escaped (not sure, and probably not a big deal).