wildcards to use in codeigniter routing?
You can match literal values or you can use two wildcard types:
:num
:any
:num will match a segment containing only numbers.
:any will match a segment containing any character.
Or you can use your custom regex, example:
$route['products/([a-z]+)/(\d+)'] = "$1/id_$2";