title: golang regex match everything up to a "."
body: <p>I'm trying to do some regex in go match everything up to the first <code>.</code>.</p>
  
  <p>The string would be this:
  <code>hostkafka1.kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec,topic=auto.tooling.files.received.v1.MeanR^Cost","metric_path":"dsdpecard01kfk06.kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec,topic=credit-card.servicing.accounts.authorized-user.created.v1.MeanRate","type":null,"region":"us-east-1</code></p>
  
  <p>and I want to match <code>hostkafka1</code></p>
  
  <p>I can use <code>/.+?(?=\.)/</code> in other languages but can't get it to work in golang...</p>