title: Regex - Match Entire String Unless
body: <p>I need to write a regular expression that will match everything in the string unless it has a certain word in it.  Taking this string for example:</p>
  
  <pre><code>http://12.34.567.890/sqlbuddy
  </code></pre>
  
  <p>The expression that matches everything is:</p>
  
  <pre><code>^.*$
  </code></pre>
  
  <p>...Which needs to be modified so that it will <strong>not</strong> match the string at all if it contains the word "sqlbuddy".  I thought that a negative lookahead would do it, but that's not working for me.</p>
  
  <p>For example, I tried this, which doesn't work:</p>
  
  <pre><code>^(?!sqlbuddy).*$
  </code></pre>
  
  <p>How should I modify this?</p>