title: How do I match the question mark character in a Django URL?
body: <p>In my Django application, I have a URL I would like to match which looks a little like this:</p>
  
  <pre><code>/mydjangoapp/?parameter1=hello&amp;parameter2=world
  </code></pre>
  
  <p>The problem here is the '?' character being a reserved regex character.</p>
  
  <p>I have tried a number of ways to match this... This was my first attempt:</p>
  
  <pre><code>(r'^pbanalytics/log/\?parameter1=(?P&lt;parameter1&gt;[\w0-9-]+)&amp;parameter2=(?P&lt;parameter2&gt;[\w0-9-]+), 'mydjangoapp.myFunction')
  </code></pre>
  
  <p>This was my second attempt:</p>
  
  <pre><code>(r'^pbanalytics/log/\\?parameter1=(?P&lt;parameter1&gt;[\w0-9-]+)&amp;parameter2=(?P&lt;parameter2&gt;[\w0-9-]+), 'mydjangoapp.myFunction')
  </code></pre>
  
  <p>but still no luck!</p>
  
  <p>Does anyone know how I might match a '?' exactly in a Django URL?</p>