title: Match all except specific group
body: <p>I have a test string <code>repo-2019-12-31-14-30-11.gz</code> and I want to exclude <code>2019-12-31-14-30-11.gz</code> from that string and match everything else. Digits with date and hour can be different. String at the beginning of text can be any word, can contain digits, dashes or underscores. Constant characters are:</p>
  
  <ul>
  <li>dash between repo name and date</li>
  <li><code>.gz</code> at end of text</li>
  </ul>
  
  <p>I tried following regex:</p>
  
  <pre><code>^.*(?!-\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}.gz$)
  </code></pre>
  
  <p>but it always matches whole text</p>