0
I’m using filter validate regexp this way:
filter_input(INPUT_POST, 'nome', FILTER_VALIDATE_REGEXP, array("options" => array("regexp" => "/.[a-zA-ZÀ-ú\s]+$/"))
The validation works, the strange thing is that if I put only one letter in the form field, it slashes. For example: If I put only "a" it bar, but if I put "aa" it works. Only from two letters it validates.
I put this one: / [a-zà-ù s]+$/i and this one: / [a-zà-ù s]+$/Iu. It keeps giving the same problem.
– Luizinho
I had testing before without the stitch too, but was giving this problem.
– Luizinho
Oops! Got it here! I forgot to update. rsrs
– Luizinho