I'm looking for a html5 full name pattern. Example result: "Đoàn Việt"
- exclude spaces at first and last
- exclude special character
- include at least 1 space between
I found these for 1 and 2: ((?!(^[ \s]+|[ \s]+$)|([0-9`~!@#$%^&()-_=+[{]}\|;:'\x22,<.>/?])).)
And i found this one for 3: (?=.*\s).{1,}
But when i combine these pattern like: ((?!(^[ \s]+|[ \s]+$)|([0-9`~!@#$%^&()-_=+[{]}\|;:'\x22,<.>/?]))(?=.\s).{1,}.)*
It doesn't work! :(
Aucun commentaire:
Enregistrer un commentaire