Regex to match only letters

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

How can I write a regex that matches only letters?

20条回答
  •  猫巷女王i
    2020-11-22 16:38

    /[a-zA-Z]+/
    

    Super simple example. Regular expressions are extremely easy to find online.

    http://www.regular-expressions.info/reference.html

提交回复
热议问题