2011-05-30 164 views

回答

3

CodeIgniter在捕获括号内使用正则表达式。添加不区分大小写的字母和空白将看起来是这样的:

$route['controller/function_name/([a-zA-Z\s]+)'] = 'controller/function_name/$1';