Hoping someone can help, I suck at regex.
The current template I am working with is
{{ state_attr(‘media_player.squeeze_rxstereo’, ‘media_content_id’)}}
This gives an output of “qobuz://track/19512577”
All I want from this is qobuz. Of course this might be spotify on another track, and the track number at the back end of the output is a random length of characters. So I cant just regex the first 5 characters, or remove last 17.
So what I need is a regex that removes the “:” and everything past it.
Bonus if I can also force a capital first letter “Qobuz”.