title: Getting git tags that doesn't contain character
body: <p>I'm trying to create a pattern to use with git ls-remote (<code>git ls-remote -t origin "&lt;mypattern&gt;"</code>) to get the tags that do not end with <code>-&lt;number&gt;</code>. It needs to be with ls-remote because I'm trying to use it in a Jenkins pipeline that uses this command internally.</p>
  
  <p>For example with following tags:</p>
  
  <pre><code>refs/tags/foo-bar-1.0.0
  refs/tags/foo-bar-1.0.1-1
  refs/tags/foo-bar-1.0.1-2
  refs/tags/foo-bar-1.0.1
  refs/tags/foo-bar-1.0.2
  </code></pre>
  
  <p>I would like to exclude the ones ending with <code>-1</code> and <code>-2</code>.</p>
  
  <p>I could to it easily with regex: <code>foo-bar-\d+(.\d+){2}$</code>, but the command doesn't accept regex.</p>
  
  <p>I tried the patterns <code>*foo-bar-*[!-]*"</code> and <code>*foo-bar-*.*.*[!-]*</code> and they didn't work, they ended up getting all tags.</p>
  
  <p>Am I missing something about the <code>!</code> operator?</p>