I'm essentially trying to duplicate what happens when you use [] in a url, something like: page.php?type[]=1&type[]=2, etc.
Right now, I have this:
$routes->add("/read/(([0-9],?)+)", array(
'controller' => 'read',
'action' => 'index',
'type' => 1
));
Then I can explode the types on the ',', but that just seems clunky to me. Is there a better way to do this? I want users to be able to bookmark searches.