title: IIS7.5 URL Rewrite, how can I get the proper callbacks?
body: <p>I'm trying to write a regex that matches the {QUERY_STRING} condition type.  </p>
  
  <p><strong>Sample Data:</strong></p>
  
  <pre><code>slug=something1 &amp;slug=something2 &amp;slug=something3 &amp;slug=something4 &amp;id=5645
  </code></pre>
  
  <p><em>Note: I've added the spaces for easier reading.</em></p>
  
  <p><strong>Regex so far:</strong></p>
  
  <pre><code>^(slug=(\w+)|&amp;slug=(\w+)|&amp;id=(\d+))+
  </code></pre>
  
  <p>With this I'm able to access 5 callbacks:</p>
  
  <ul>
  <li>{C:0} slug=something1 &amp;slug=something2 &amp;slug=something3
  &amp;slug=something4 &amp;id=5645</li>
  <li>{C:1} &amp;id=5645</li>
  <li>{C:2} <em>empty</em></li>
  <li>{C:3} <em>empty</em></li>
  <li>{C:4} 5645</li>
  </ul>
  
  <p><strong>What I'm trying to achieve:</strong></p>
  
  <ul>
  <li>{C:0} slug=something1 &amp;slug=something2 &amp;slug=something3
  &amp;slug=something4 &amp;id=5645</li>
  <li>{C:1} something1</li>
  <li>{C:2} something2</li>
  <li>{C:3} something3</li>
  <li>{C:4} something4</li>
  <li>{C:5} 5645</li>
  </ul>
  
  <p><strong>One other requirement:</strong></p>
  
  <p>I'm always passing the <strong>id</strong> as the last variable, and I'd like it to be in the 5th position all the time regardless of how many slugs are passed (to a maximum of 4, minimum of 1).  Is this even possible?</p>
  
  <p>Thank you!</p>