[eluser]Twisted1919[/eluser]
If i were you , i wouldn't use routes .
I would create a function called select() and i would do like :
Code:
function select($uri=''){
if( preg_match('/([a-zA-Z0-9]+)-([0-9]+)/ix',$uri,$matches) ){
$first = $matches[0];//politic
$second= $matches[2];//3
}
}
or you can do it easier :
Code:
function select(uri=''){
if( strpos($uri,'-') !== false ){
$u = explode('-',$uri);
$first = $u[0];//politic
$second= $u[1];//3
}
}
Don't use routes when you don't really need them .