title: Parsing url params with Backbone routers - regex examples
body: <p>I'm using Backbone.js and I have a url to my collection followed by a param string - the params can occur in any order, the number of params can vary.</p>
  <blockquote>
  <p>mywebsite.com/?orderBy=recent&amp;author=Smith</p>
  <p>mywebsite.com/?author=Smith&amp;type=Horror,Romance</p>
  </blockquote>
  <p>So in a way the /:param isn't ideal unless I define an order that they have to be in in the url:</p>
  <blockquote>
  <p>/:orderBy/:author/:type...</p>
  </blockquote>
  <p>and allow some of them to be null somehow.</p>
  <p>What's the best way to set this up?
  Would a router with regex answer my problems?
  If so, I can't find examples of a router using regex to pass multiple arguments to a routing function in Backbone.</p>
  <p>Thanks!</p>