title: regex search in vi for a line that contains a string but does *not* end with, say, Q
body: <p>Using vi, I want to match a string, but only if the line doesn't end with some letter, say Q.</p>
  
  <p>E.g., if the file is:</p>
  
  <pre><code>myQ
  my
  </code></pre>
  
  <p>I want to match the first line but not the second.</p>
  
  <p>From reading related posts it <em>would seem</em> that look aheads should work:</p>
  
  <pre><code>/[?=my][?!Q]
  </code></pre>
  
  <p>should find just the second line
  but it finds the first.</p>