title: python regex match querystring path
body: <p>I'm trying to write a regex to match any path that contains <code>/?</code> to determine whether it is a querystring or not.</p>
  
  <p>a sample string to be matched would be this: <code>/mysite/path/to/whatever/?page=1</code></p>
  
  <p>so far I thought this would match <code>re.match(r'/\?', '/mysite/path/to/whatever/?page=1')</code></p>
  
  <p>but it doesn't seem to be matching</p>