title: Regular expression for a string containing one word but not another
body: <p>I'm setting up some goals in Google Analytics and could use a little regex help.</p>
  
  <p>Lets say I have 4 URLs</p>
  
  <pre><code>http://www.anydotcom.com/test/search.cfm?metric=blah&amp;selector=size&amp;value=1
  http://www.anydotcom.com/test/search.cfm?metric=blah2&amp;selector=style&amp;value=1
  http://www.anydotcom.com/test/search.cfm?metric=blah3&amp;selector=size&amp;value=1
  http://www.anydotcom.com/test/details.cfm?metric=blah&amp;selector=size&amp;value=1
  </code></pre>
  
  <p>I want to create an expression that will identify any URL that contains the string <strong>selector=size</strong> but does NOT contain <strong>details.cfm</strong></p>
  
  <p>I know that to find a string that does NOT contain another string I can use this expression:</p>
  
  <pre><code>(^((?!details.cfm).)*$)
  </code></pre>
  
  <p>But, I'm not sure how to add in the <strong>selector=size</strong> portion.</p>
  
  <p>Any help would be greatly appreciated!</p>