Regex to match only letters

后端 未结 20 1739
孤城傲影
孤城傲影 2020-11-22 16:24

How can I write a regex that matches only letters?

20条回答
  •  渐次进展
    2020-11-22 16:29

    Lately I have used this pattern in my forms to check names of people, containing letters, blanks and special characters like accent marks.

    pattern="[A-zÀ-ú\s]+"
    

提交回复
热议问题