CodeIgniter 路由特殊字符

CodeIgniter Routing special characters

我正在尝试制作具有特殊字符的 CodeIgniter:

somepage.com/something#somethingelse

routes.php中的定义是:

$route['(:any)#(:any)'] = 'eshop/eshop/individual//';

但它抛出错误:

Message: preg_match(): Unknown modifier '('

你有这方面的经验吗?谢谢

仅:

$route['(:any)'] = 'eshop/eshop/individual/';

在Javascript之后:

var hash = window.location.hash.substr(1);