I'm trying to do some regex in go match everything up to the first .
.
The string would be this:
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
and I want to match hostkafka1
I can use /.+?(?=\.)/
in other languages but can't get it to work in golang...