title: How do I write a regular expression to route traffic with Grapevine when my request URL has a query string?
body: <p>I'm using <a href="https://github.com/sukona/Grapevine" rel="nofollow">Grapevine</a> and I want to route request traffic that has a query string, and I don't know regular expressions well enough to figure out why it's not working.</p>
  
  <p><strong>e.g.</strong></p>
  
  <pre><code>http://localhost:1234/service/function?param1=1&amp;param2=2
  </code></pre>
  
  <p>And I defined my <code>RESTRoute</code> like this:</p>
  
  <pre><code>[RESTRoute(Method = HttpMethod.GET, PathInfo = @"^/service/function\?\D+$")]
  public void HandleFooRequestString(HttpListenerContext context)
  {
      PrintRequest(context);
      this.SendTextResponse(context, "foo is a success!");
  }
  </code></pre>
  
  <p>But traffic sent to the URL isn't going to that method. What am I doing wrong?</p>