how to match /foo/:id/bar?any_query_string_I_want with regex : <p>This is a page URL and the :id param changes based on the resource and the query string can be all over the map.</p>

<p>How can I match /foo/:id/bar?anything</p>

<p>thanks in advance</p>
