module RouteTranslator::Host

def regex_for(host_string)

def regex_for(host_string)
  escaped = Regexp.escape(host_string).gsub('\*', '.*?').gsub('\.', '\.?')
  Regexp.new("^#{escaped}$", Regexp::IGNORECASE)
end