bab*_*ak6 0 regex validation codeigniter
我有许多具有相同结构的表格.它们对于用户数据都是相同的.这些表单的id是addComment1,addComment2,addComment3等.我想为每个表单定义表单验证.但我不知道他们的数字.我想使用正则表达式在form_validation.php中定义它们.它们都具有相同的结构,并且form_validation函数对于所有这些都是相同的.我怎样才能使用正则表达式来做呢?
$this->form_validation->set_rules('field name', 'human name', 'regex_match[expression]');
Run Code Online (Sandbox Code Playgroud)
http://ellislab.com/forums/viewthread/195050/
使用搜索.