title: Regex: Match word not containing
body: <p>I have the following words:</p>
  
  <pre><code>EFI Internal Shell
  EFI Hard Drive
  EFI Drive
  </code></pre>
  
  <p>I want to match words that contain EFI but not containing Drive. So only the top word (EFI Internal Shell) should match.</p>
  
  <p>How can this be done in regex?</p>
  
  <p>I looked through SO and none of the answers were able to get me on the right track.</p>
  
  <p>For example: <a href="https://stackoverflow.com/questions/717644/regular-expression-that-doesnt-contain-certain-string">Regular expression that doesn&#39;t contain certain string</a> says to use <code>^((?!my string).)*$</code> but that <a href="https://regex101.com/r/aF6hT1/1" rel="noreferrer">didn't work</a>. Even to match any string not containing Drive.</p>
  
  <p>Any tips?</p>