Welcome Guest, Not a member yet? Register   Sign In
Form_validation regex_match
#6

[eluser]Exangelus[/eluser]
I already worked that out and I'm currently using this code:
Code:
if(stripos($rule, '[') !== false && substr($rule, -1) == ']')

However, simple regexp do seem to work while more complex one's do not. I'm still figuring out with which exact characters (or combinations) it goes wrong..

Cheers!


Messages In This Thread
Form_validation regex_match - by El Forum - 04-05-2011, 01:16 AM
Form_validation regex_match - by El Forum - 04-05-2011, 08:05 AM
Form_validation regex_match - by El Forum - 04-05-2011, 08:13 AM
Form_validation regex_match - by El Forum - 04-05-2011, 08:54 AM
Form_validation regex_match - by El Forum - 04-18-2011, 07:28 PM
Form_validation regex_match - by El Forum - 04-19-2011, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB