title: regular expression - url with parameters
body: <p>I am trying to make a rule for URL Rewrite 2.0
  my internal URL is</p>
  
  <pre><code>http://someserver.net/in40/data/getcase.ashx?type=Good&amp;format=json
  </code></pre>
  
  <p>("in40" is an application)</p>
  
  <p>I need the following URL to work</p>
  
  <pre><code>http://someserver.net/in40/data/getcase/Good?fmt=json
  </code></pre>
  
  <p>rule</p>
  
  <pre><code>&lt;match url="^data/getcase/([_0-9a-z-]+)\?fmt=([_0-9a-z-]+)$" /&gt;
  &lt;action type="Rewrite" url="data/getcase.ashx?type={R:1}&amp;amp;format={R:2}" /&gt;
  </code></pre>
  
  <p>doesn't work</p>
  
  <hr>
  
  <p>but if I change <code>\?fmt=</code> to <code>/</code></p>
  
  <pre><code>&lt;match url="^data/getcase/([_0-9a-z-]+)/([_0-9a-z-]+)$" /&gt;
  </code></pre>
  
  <p>then the following URL works fine</p>
  
  <pre><code>http://someserver.net/in40/data/getcase/Good/json 
  </code></pre>
  
  <hr>
  
  <p>How to make the rewrite rule for </p>
  
  <pre><code>http://someserver.net/in40/data/getcase/Good?fmt=json
  </code></pre>