I have at the moment a problem on a Symfony project, I have to create people account from a form, but I have a problem, I want to avoid every data that are not real firstname/lastname.
So tried to do it with a Regex constraint but since I'm bad at it, I can't made it work like I want. I want only letters but allow accentuated letters (like 'é' or 'è)and also œ,' or -.
And tried something like this but it doesn't work : #^([a-z]+(( |')[a-z]+))+([-]([a-z]+(( |')[a-z]+))+)*$#iu
If someone can help me, I would really appreciate it :)