title: Regex pattern for Url in Fiddler
body: <p>I have to send different responses depending on the attribute values in the http request using Auto responder in fiddler by adding rules. </p>
  
  <p>My Url's will be as folowed</p>
  
  <ol>
  <li><p><a href="http://example.com/path/page?type=b&amp;edate=&amp;dep=LGW" rel="nofollow">http://example.com/path/page?type=b&amp;edate=&amp;dep=LGW</a>  (value for 'dep' can be any thing from a list say [LGW,ABZ,EDI,GLA,BFS,BHX,BOH,BRS,CWL,DSA])</p></li>
  <li><p><a href="http://example.com/path/page?type=b&amp;edate=22-04-2015&amp;dep=LGW" rel="nofollow">http://example.com/path/page?type=b&amp;edate=22-04-2015&amp;dep=LGW</a></p></li>
  <li><p><a href="http://example.com/path/page?type=b&amp;edate=&amp;dep=PMI" rel="nofollow">http://example.com/path/page?type=b&amp;edate=&amp;dep=PMI</a>  (for request 3 &amp; 4 value for 'dep' can be anything other the values mentioned in the above list)</p></li>
  <li><p><a href="http://example.com/path/page?type=b&amp;edate=22-04-2015&amp;dep=PMI" rel="nofollow">http://example.com/path/page?type=b&amp;edate=22-04-2015&amp;dep=PMI</a></p></li>
  </ol>
  
  <p>In the request 1 &amp; 3 'edate' will be empty and in request 2&amp;4 will have a value for 'edate'.</p>
  
  <p>I can able to write the regex for req 2 as</p>
  
  <pre><code>example.com?.+&amp;edate=(\d*)-(\d*)-(\d*)&amp;stay=0&amp;dep=(LGW|ABZ|EDI|GLA|BFS|BHX|BOH|BRS|CWL|DSA)&amp;.+
  </code></pre>
  
  <p>How to write the regex for request 3? I tried this:</p>
  
  <pre><code>example.com?.+&amp;edate=(\d*)-(\d*)-(\d*)&amp;stay=0&amp;dep=!(LGW|ABZ|EDI|GLA|BFS|BHX|BOH|BRS|CWL|DSA)&amp;.+
  </code></pre>
  
  <p>But it is validating only for the first item ie. LGW not validating the remaining.</p>
  
  <p>correct me if I am wrong</p>