Welcome Guest, Not a member yet? Register   Sign In
form_validation and regex_match?
#1

[eluser]JackU[/eluser]
I´m using the form_validation library to validate my $_GET

I could do this:
$this->form_validation->set_rules("dir","directory","min_length[2]|regex_match[/^(\\\[a-zA-Z0-9_]+)+$/]");

But i can´t do this:
$this->form_validation->set_rules("answer","answer","min_length[2]|regex_match[/^(yes|no)$/i]");

Why?

It seems that it won´t even get sent the regex_match function in form_validation. Why is that?



Messages In This Thread
form_validation and regex_match? - by El Forum - 03-21-2013, 01:24 AM
form_validation and regex_match? - by El Forum - 03-21-2013, 01:59 AM
form_validation and regex_match? - by El Forum - 03-21-2013, 02:20 AM
form_validation and regex_match? - by El Forum - 03-21-2013, 02:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB