Welcome Guest, Not a member yet? Register   Sign In
adding character in the reg expression validation library
#1

[eluser]alebenson[/eluser]
hi there..
i found that to validate some character i need to edit the main library file wich i dont like, do you have any suggestion?

i want to add this 'çÇ' letters to pass the validation, how can i do that?
this is how the code look like

Code:
function alpha($str)
{
    return ( ! preg_match("/^([a-z])+$/i", $str)) ? FALSE : TRUE;
}

for the letters with accent i just converting them to plain letters, its fuck.. its not right i now




Theme © iAndrew 2016 - Forum software by © MyBB