title: Helm regex match from the beginning until the last occurance of a character
body: <p>Struggling with Helm to match the word from its beginning to the last occurance of <code>-</code>.</p>
  
  <p>I tried <code>{{- printf "%s" .Release.Name | regexFind "[^-]*$" -}}</code>, but it prints from the last occurrance to the end of the word.</p>
  
  <p><strong>Expected</strong> </p>
  
  <p>input : <code>hello-world-here</code> => output: <code>hello-world</code></p>
  
  <p>input : <code>hello-world-here-and-there</code> => output : <code>hello-world-here-and</code> </p>