title: Notepad++ Regex Find line containing a word and not containing a word
body: <p>I want to use notepad++ and regex to find a line that contains the word <code>g_n</code> and does not contain the word <code>thd</code>.</p>
  
  <p>I've been desperately trying to figure this out but with little luck. Can someone point me in the right direction? It would be greatly appreciated.</p>
  
  <p>I know that I can use ^ to negate something.</p>