samedi 17 février 2018

HTML Full name pattern?

I'm looking for a html5 full name pattern. Example result: "Đoàn Việt"

  1. exclude spaces at first and last
  2. exclude special character
  3. 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