title: How to exclude exact strings (not substrings) from matches in regex?
body: <p>I've found lots of questions on here on how to exclude a substring from results, but I want to exclude lines that are exact matches and simply can't figure out how to do it.</p>
  
  <p>With the test data below, how would I match everything <em>except</em> for <code>11</code> and <code>111</code>?</p>
  
  <pre><code>0
  1
  00
  01
  10
  11
  000
  001
  010
  011
  100
  101
  110
  111
  0000
  0001
  0010
  0011
  0100
  0101
  0110
  0111
  1000
  1001
  1010
  </code></pre>
  
  <p>I've tried various things, such as this:</p>
  
  <pre><code>^((?!11|111).)*$
  </code></pre>
  
  <p>But that excludes substring matches, when again I'm wanting to exclude exact matches.</p>
  
  <p>Is this possible with regex? If so, how can excluding <em>exact</em> matches be achieved?</p>