Regular expression to accept only characters (a-z) in a textbox

后端 未结 8 1385
北荒
北荒 2021-01-05 12:16

What is a regular expression that accepts only characters ranging from a to z?

8条回答
  •  不知归路
    2021-01-05 12:52

    ^[A-Za-z]+$ To understand how to use it in a function to validate text, see this example

提交回复
热议问题