Regex For Hostname To Exclude Trailing FDQN

How would you use a pattern match to get just the hostname and not the fqdn stuff?

host = muhhost.muhdomain.domain

But I want just muhhost

@hayden_redd, give this a go

{{host:/(^[^.]*)/}}

Make sure that you don’t have the multiple matches box checked.

Just to provide some more context.
image

Courtesy of https://regex101.com