用户指南中有这样的内容
(:num) will match a segment containing only numbers.
所以我这样做
//using wildcard
$route['tool/reply/(\d+)'] = "tool/reply/$1";
//or using regx like this
//$route['tool/reply/(:num)'] = "tool/reply/$1";
但它不仅匹配数字,还匹配字符串。发生了什么?我错过了什么?
用户指南中有这样的内容
(:num) will match a segment containing only numbers.
所以我这样做
//using wildcard
$route['tool/reply/(\d+)'] = "tool/reply/$1";
//or using regx like this
//$route['tool/reply/(:num)'] = "tool/reply/$1";
但它不仅匹配数字,还匹配字符串。发生了什么?我错过了什么?